code: def dumps(obj: Any) -> str:
      """Dumps an object to JSON with Jsonable encoding."""
      return json.dumps(obj, cls=_DefaultEncoder, sort_keys=True)
  
imports: import importlib
  import inspect
  import json
  from typing import Any, Dict, Type, Union, Mapping, Sequence
  from tfx.utils import deprecation_utils
  from tfx.utils import doc_controls
  from tfx.utils import proto_utils
  from google.protobuf import message
label_desc: Use image node_id 1 for calling a global function with example usage: dumps(obj) and returns: json