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