code: def fallback_syft_encoder(value):
      return Binary(
          _serialize(value, to_bytes=True), USER_DEFINED_SUBTYPE
      )
  
file_path: PySyft/packages/syft/src/syft/store/mongo_codecs.py
imports: from bson import CodecOptions
  from bson.binary import Binary
  from bson.binary import USER_DEFINED_SUBTYPE
  from bson.codec_options import TypeDecoder
  from bson.codec_options import TypeRegistry
  from ..serde.deserialize import _deserialize
  from ..serde.serialize import _serialize
label_desc: Use image node_id 1 for calling a global function with example usage: fallback_syft_encoder(value) and returns: Binary