code: def test_get_callable_name():
      getname = com.get_callable_name
  
      def fn(x):
          return x
  
      lambda_ = lambda x: x
      part1 = partial(fn)
      part2 = partial(part1)
  
      class somecall:
          def __call__(self):
              # This shouldn't actually get called below; somecall.__init__
              #  should.
              raise NotImplementedError
  
      assert getname(fn) == "fn"
      assert getname(lambda_)
      assert getname(part1) == "fn"
      assert getname(part2) == "fn"
      assert getname(somecall()) == "somecall"
      assert getname(1) is None
  
imports: import collections
  from functools import partial
  import string
  import subprocess
  import sys
  import textwrap
  import numpy
  import pytest
  import pandas
  from pandas import Series
  import pandas._testing
  from pandas.core import ops
  import pandas.core.common
  from pandas.util.version import Version
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_callable_name() and returns: x