code: def child_class(cls, allowlist=(), denylist=()):
      class ChildNoOverrides(Base):
          def __init__(self):
              super(ChildNoOverrides, self).__init__(
                  allowlist, denylist
              )
  
      class ChildOverrideMethod1(Base):
          def __init__(self):
              super(ChildOverrideMethod1, self).__init__(
                  allowlist, denylist
              )
  
          def method1(self):
              return 1
  
      class ChildOverrideBoth(Base):
          def __init__(self):
              super(ChildOverrideBoth, self).__init__(
                  allowlist, denylist
              )
  
          def method1(self):
              return 1
  
          def method2(self):
              return 1
  
      if cls == "ChildNoOverrides":
          return ChildNoOverrides
      elif cls == "ChildOverrideMethod1":
          return ChildOverrideMethod1
      elif cls == "ChildOverrideBoth":
          return ChildOverrideBoth
  
file_path: agents/tf_agents/utils/common_members_not_overridden_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from tf_agents.utils import common
label_desc: Use image node_id 1 for calling a global function with example usage: child_class(cls, allowlist, denylist) and returns: ChildNoOverrides, int, int, int, ChildOverrideMethod1, ChildOverrideBoth