code: def load_object(self, obj):
          
          locator = self._make_locator()
  
          path = locator.find_object(obj, self.search_dirs)
  
          return self.read(path)
docs: Find and return the template associated to the given object.
  
          Arguments:
  
            obj: an instance of a user-defined class.
  
            search_dirs: the list of directories in which to search.