code: def to_json(o):
      """Make the information succinct and easy to read.
  
      Avoid the full class representation like `<class 'transformers.models.bert.modeling_bert.BertForMaskedLM'>` when
      displaying the results. Instead, we use class name (`BertForMaskedLM`) for the readability.
      """
      if isinstance(o, str):
          return o
      elif isinstance(o, type):
          return o.__name__
      elif isinstance(o, (list, tuple)):
          return [to_json(x) for x in o]
      elif isinstance(o, dict):
          return {to_json(k): to_json(v) for k, v in o.items()}
      else:
          return o
  
file_path: transformers/utils/get_test_info.py
imports: import importlib
  import os
  import sys
label_desc: Use image node_id 12 for calling a global function with example usage: to_json(o) and returns: o, o, unknown, unknown, o