code: def serializable(cls):
      """
      Add loader and dumper for given class, which must be
      "trivially serializable"
  
      Args:
          cls: class to be serialized
  
      Returns: cls
      """
      yaml.add_constructor(
          "!{}".format(cls.__name__), _make_python_constructor(cls)
      )
      yaml.add_representer(cls, _make_python_representer(cls))
      return cls
  
file_path: PaddleDetection/ppdet/core/config/yaml_helpers.py
imports: import importlib
  import inspect
  import yaml
  from .schema import SharedConfig
label_desc: Use image node_id 5 for calling a global function with example usage: serializable(cls) and returns: cls