code: def test_enclosing_scope_name():
      b = B()
      name = b.get_scope_name()
      assert name == "B.get_scope_name"
      name = b.get_scope_name(stack=3)
      assert name == "B.get_scope_name"
      name = b.get_scope_name(ensure_estimator=False)
      assert name == "C.get_scope_name"
      name = b.get_scope_name(stack=3, ensure_estimator=False)
      assert name == "get_scope_name"
      name = b.get_scope_name(ensure_estimator=False, stack_level=120)
      assert name == "Unknown"
  
file_path: nilearn/nilearn/_utils/tests/test_class_inspect.py
imports: from sklearn.base import BaseEstimator
  from nilearn._utils import class_inspect
label_desc: Use image node_id 3 for calling a global function with example usage: test_enclosing_scope_name() without return types