def METHOD_NAME(self, obj):
    """
    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.
    """
    locator = self._make_locator()
    path = locator.find_object(obj, self.search_dirs)
    return self.read(path)