code: def _param_to_str(obj):
      if isinstance(obj, type):
          return obj.__name__
      elif hasattr(obj, "__name__") and isinstance(obj.__name__, str):
          # print __name__ attribute for classes, functions and modules
          return obj.__name__
      return repr(obj)
  
imports: import functools
  import itertools
  import types
  import typing
  import unittest
  import numpy
  import six
  from chainer.testing import _bundle
  from chainer import utils
label_desc: Use image node_id 1 for calling a global function with example usage: _param_to_str(obj) and returns: repr, obj, obj