code: def _try_get_name(fn, name_fallback="unknown"):
      return str(
          getattr(fn, "__name__", None)
          or getattr(fn, "name", None)
          or getattr(type(fn), "__name__", name_fallback)
      )
  
imports: import sys
  import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.nn.util import utils
  from tensorflow_probability.python.internal import name_util
label_desc: Use image node_id 2 for calling a global function with example usage: _try_get_name(fn, name_fallback) and returns: str