original_docstring: 
          Find the name by searching down through nested packages or raise NotFound.
          This is a kind of in-order tree walk of contained packages.
          
docstring: Find the name by searching down through nested packages or raise NotFound.
  This is a kind of in-order tree walk of contained packages.
docstring_tokens: Find the name by searching down through nested packages or raise NotFound . This is a kind of in - order tree walk of contained packages .
code: def find_name(
              context: Union['NameContainer', Dict[str, Any]],
              path: List[str]
      ) -> Referent:
          """
          Find the name by searching down through nested packages or raise NotFound.
          This is a kind of in-order tree walk of contained packages.
          """
          if path and isinstance(context, (Dict, NameContainer)):
              head, *tail = path
              try:
                  sub_context = cast(Dict[str, Any], context[head])
              except KeyError:
                  NameContainer.logger.debug(f"{head!r} not found in {context.keys()}")
                  raise NameContainer.NotFound(path)
              return NameContainer.find_name(sub_context, tail)
          elif not path:
              # Fully matched. This is what we were looking for.
              return cast(Referent, context)
          else:
              # Still path to match, but out of containers to search. Fail.
              NameContainer.logger.debug(f"{path!r} not found in {context!r}")
              raise NameContainer.NotFound(path)
code_tokens: def find_name ( context : Union [ 'NameContainer' , Dict [ str , Any ] ] , path : List [ str ] ) -> Referent : if path and isinstance ( context , ( Dict , NameContainer ) ) : head , * tail = path try : sub_context = cast ( Dict [ str , Any ] , context [ head ] ) except KeyError : NameContainer . logger . debug ( f"{head!r} not found in {context.keys()}" ) raise NameContainer . NotFound ( path ) return NameContainer . find_name ( sub_context , tail ) elif not path : return cast ( Referent , context ) else : NameContainer . logger . debug ( f"{path!r} not found in {context!r}" ) raise NameContainer . NotFound ( path )
short_docstring: Find the name by searching down through nested packages or raise NotFound.
short_docstring_tokens: Find the name by searching down through nested packages or raise NotFound .
comment: """
          Find the name by searching down through nested packages or raise NotFound.
          This is a kind of in-order tree walk of contained packages.
          """$SEP$# Fully matched. This is what we were looking for.$SEP$# Still path to match, but out of containers to search. Fail.