code: def resolve(self, kind, value, implicit):
      if kind is ScalarNode and implicit[0]:
          if value == "":
              resolvers = self.yaml_implicit_resolvers.get("", [])
          else:
              resolvers = self.yaml_implicit_resolvers.get(value[0], [])
          resolvers += self.yaml_implicit_resolvers.get(None, [])
          for tag, regexp in resolvers:
              if regexp.match(value):
                  return tag
          implicit = implicit[1]
      if self.yaml_path_resolvers:
          exact_paths = self.resolver_exact_paths[-1]
          if kind in exact_paths:
              return exact_paths[kind]
          if None in exact_paths:
              return exact_paths[None]
      if kind is ScalarNode:
          return self.DEFAULT_SCALAR_TAG
      elif kind is SequenceNode:
          return self.DEFAULT_SEQUENCE_TAG
      elif kind is MappingNode:
          return self.DEFAULT_MAPPING_TAG
  
file_path: keepsake/python/keepsake/_vendor/yaml/resolver.py
imports: from .error import *
  from .nodes import *
  import re
label_desc: Use image node_id 7 for calling the BaseResolver obj's underlying member method code with example usage: obj.resolve(kind, value, implicit) and returns: self, exact_paths, exact_paths, self, tag, self