code: def check_function(self, name):
      t = getattr(self.module, name)
      r = t(lambda: 4)
      assert r == 4
      r = t(lambda a: 5, fun_extra_args=(6,))
      assert r == 5
      r = t(lambda a: a, fun_extra_args=(6,))
      assert r == 6
      r = t(lambda a: 5 + a, fun_extra_args=(7,))
      assert r == 12
      r = t(lambda a: math.degrees(a), fun_extra_args=(math.pi,))
      assert r == 180
      r = t(math.degrees, fun_extra_args=(math.pi,))
      assert r == 180
  
      r = t(self.module.func, fun_extra_args=(6,))
      assert r == 17
      r = t(self.module.func0)
      assert r == 11
      r = t(self.module.func0._cpointer)
      assert r == 11
  
      class A:
          def __call__(self):
              return 7
  
          def mth(self):
              return 9
  
      a = A()
      r = t(a)
      assert r == 7
      r = t(a.mth)
      assert r == 9
  
imports: import math
  import textwrap
  import sys
  import pytest
  import threading
  import traceback
  import time
  import numpy
  from numpy.testing import IS_PYPY
  from .None import util
label_desc: Use image node_id 3 for calling the TestF77Callback obj's underlying member method code with example usage: obj.check_function(name) and returns: int, int