code: def testRegistryBasics(self, candidate):
      myreg = registry.Registry("testRegistry")
      with self.assertRaises(LookupError):
          myreg.lookup("testKey")
      myreg.register(candidate)
      self.assertEqual(myreg.lookup(candidate.__name__), candidate)
      myreg.register(candidate, "testKey")
      self.assertEqual(myreg.lookup("testKey"), candidate)
      self.assertEqual(
          sorted(myreg.list()), sorted(["testKey", candidate.__name__])
      )
  
file_path: tensorflow/tensorflow/python/framework/registry_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.framework import registry
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the RegistryTest obj's underlying member method code with example usage: obj.testRegistryBasics(candidate) without return types