code: def print_cx(self, pretty=True):
          def _get_aspect_metadata(aspect):
              count = len(self.cx.get(aspect)) if self.cx.get(aspect) else 0
              if not count:
                  return None
              data = {'name': aspect,
                      'idCounter': self._id_counter,
                      'consistencyGroup': 1,
                      'elementCount': count}
              return data
          full_cx = OrderedDict()
          full_cx['numberVerification'] = [{'longNumber': 281474976710655}]
          aspects = ['nodes', 'edges', 'supports', 'citations', 'edgeAttributes',
                     'edgeCitations', 'edgeSupports', 'networkAttributes',
                     'nodeAttributes', 'cartesianLayout']
          full_cx['metaData'] = []
          for aspect in aspects:
              metadata = _get_aspect_metadata(aspect)
              if metadata:
                  full_cx['metaData'].append(metadata)
          for k, v in self.cx.items():
              full_cx[k] = v
          full_cx['status'] = [{'error': '', 'success': True}]
          full_cx = [{k: v} for k, v in full_cx.items()]
          if pretty:
              json_str = json.dumps(full_cx, indent=2)
          else:
              json_str = json.dumps(full_cx)
          return json_str