docs: def LookupWithType(self, user_str):
          """
      Returns:
        ref: Either a template instance (itself) or _TemplateRef
      """
          prefix = 'template '
          ref = None  # fail the lookup by default
          if user_str.startswith(prefix):
              name = user_str[len(prefix):]
              if name == 'SELF':
                  # we can resolve this right away
                  ref = _TemplateRef(template=self.owner)  # special value
              else:
                  ref = _TemplateRef(name)
          
          return ref, (), TEMPLATE_FORMATTER