code: def dumps(self):
          '''Create a CBOR byte string from a feature collection.'''
          metadata = {'v': 'fc01'}
          if self.read_only:
              metadata['ro'] = 1
          rep = [metadata, self.to_dict()]
          return cbor.dumps(repf dumps(self):
          '''Create a CBOR byte string from a feature collection.'''
          metadata = {'v': 'fc01'}
          if self.read_only:
              metadata['ro'] = 1
          rep = [metadata, self.to_dict()]
          return cbor.dumps(rep)
docs: Create a CBOR byte string from a feature collection.