code: def lookup(self, data):
          
          for func in self.lazy_init:
              func()
  
          for type, func in self.func_registry.items():
              if isinstance(data, type):
                  return func
docs: Returns an appropriate function to format `data` if one has been
          registered.