code: def serialize(cls, obj) -> bytes:
      return p_dumps(obj)
  
file_path: FATE/python/fate/arch/computing/serdes/_restricted_serdes.py
imports: import importlib
  import io
  from ruamel import yaml
  from ._serdes_base import p_dumps, Unpickler
label_desc: Use image node_id 1 for calling the WhitelistRestrictedSerdes obj's underlying member method code with example usage: obj.serialize(cls, obj) and returns: p_dumps