code: def _serialize_items(self, channel_metadata_items):
          
          return json.dumps(
              self._prepare_items_for_transmission(channel_metadata_items),
              sort_keys=True
          ).encode('utf-8')
docs: Serialize content metadata items for a create transmission to the integrated channel.