code: def test_is_allowlisted_callable_allowlisted_call(self):
      allowlisted_mod = imp.new_module("test_allowlisted_call")
      sys.modules["test_allowlisted_call"] = allowlisted_mod
      config.CONVERSION_RULES = (
          config.DoNotConvert("test_allowlisted_call"),
      ) + config.CONVERSION_RULES
  
      class TestClass(object):
          def __call__(self):
              pass
  
          def allowlisted_method(self):
              pass
  
      TestClass.__module__ = "test_allowlisted_call"
      if six.PY2:
          TestClass.__call__.__func__.__module__ = (
              "test_allowlisted_call"
          )
      else:
          TestClass.__call__.__module__ = "test_allowlisted_call"
  
      class Subclass(TestClass):
          def converted_method(self):
              pass
  
      tc = Subclass()
  
      self.assertTrue(conversion.is_allowlisted(TestClass.__call__))
      self.assertTrue(conversion.is_allowlisted(tc))
      self.assertTrue(conversion.is_allowlisted(tc.__call__))
      self.assertTrue(conversion.is_allowlisted(tc.allowlisted_method))
      self.assertFalse(conversion.is_allowlisted(Subclass))
      self.assertFalse(conversion.is_allowlisted(tc.converted_method))
  
file_path: DALI/dali/test/python/autograph/impl/test_conversion.py
imports: import imp
  import sys
  import unittest
  import six
  from nvidia.dali._autograph import utils
  from nvidia.dali._autograph.core import config
  from nvidia.dali._autograph.core import converter
  from nvidia.dali._autograph.impl import api
  from nvidia.dali._autograph.impl import conversion
label_desc: Use image node_id 3 for calling the ConversionTest obj's underlying member method code with example usage: obj.test_is_allowlisted_callable_allowlisted_call() without return types