code: def _get_test_name_best_effort():
      """If available, return the current test name. Otherwise, `None`."""
      for stack in tf_inspect.stack():
          function_name = stack[3]
          if function_name.startswith("test"):
              try:
                  class_name = (
                      stack[0].f_locals["self"].__class__.__name__
                  )
                  return class_name + "." + function_name
              except:  # pylint:disable=bare-except
                  pass
  
      return None
  
file_path: tensorflow/tensorflow/python/framework/memory_checker.py
imports: from tensorflow.python.framework.python_memory_checker import _PythonMemoryChecker
  from tensorflow.python.profiler import trace
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 1 for calling a global function with example usage: _get_test_name_best_effort() and returns: None, unknown