code: def _names_to_types(self, names, attribute_lookup):
      contexts = ContextSet.from_sets(name.infer() for name in names)
  
      debug.dbg("finder._names_to_types: %s -> %s", names, contexts)
      if not names and isinstance(
          self._context, AbstractInstanceContext
      ):
          # handling __getattr__ / __getattribute__
          return self._check_getattr(self._context)
  
      # Add isinstance and other if/assert knowledge.
      if (
          not contexts
          and isinstance(self._name, tree.Name)
          and not isinstance(
              self._name_context, AbstractInstanceContext
          )
      ):
          flow_scope = self._name
          base_node = self._name_context.tree_node
          if base_node.type == "comp_for":
              return contexts
          while True:
              flow_scope = get_parent_scope(
                  flow_scope, include_flows=True
              )
              n = _check_flow_information(
                  self._name_context,
                  flow_scope,
                  self._name,
                  self._position,
              )
              if n is not None:
                  return n
              if flow_scope == base_node:
                  break
      return contexts
  
imports: from parso.python import tree
  from parso.tree import search_ancestor
  from jedi import debug
  from jedi import settings
  from jedi.evaluate.context import AbstractInstanceContext
  from jedi.evaluate import compiled
  from jedi.evaluate import analysis
  from jedi.evaluate import flow_analysis
  from jedi.evaluate.arguments import TreeArguments
  from jedi.evaluate import helpers
  from jedi.evaluate.context import iterable
  from jedi.evaluate.filters import get_global_filters, TreeNameDefinition
  from jedi.evaluate.base_context import ContextSet
  from jedi.parser_utils import is_scope, get_parent_scope
label_desc: Use image node_id 7 for calling the NameFinder obj's underlying member method code with example usage: obj._names_to_types(names, attribute_lookup) and returns: contexts, self, contexts, n