docstr: Parameters
  ----------
  partial_index
      Get the result until a certain index.
      For example, if the result is ``(A=1, B=2, C=2)`` and ``partial_index=1``, this will
      return ``["A=1", "B=2"]``.
  
  Returns
  -------
  names
      Names with the result conditions.
code: def names(self, partial_index: Optional[int] = None) -> list:
      """
      Parameters
      ----------
      partial_index
          Get the result until a certain index.
          For example, if the result is ``(A=1, B=2, C=2)`` and ``partial_index=1``, this will
          return ``["A=1", "B=2"]``.
  
      Returns
      -------
      names
          Names with the result conditions.
      """
      names = self.exp_map["names"]
      if partial_index is not None:
          names = names[: partial_index + 1]
      return names
  
file_path: alibi/alibi/explainers/anchors/anchor_explanation.py
imports: from typing import Optional, Union
  import numpy
label_desc: Use image node_id 2 for calling the AnchorExplanation obj's underlying member method code with example usage: obj.names(partial_index) and returns: names