class_docstr: Object returned by explainers.
docstr: Returns the list of classification labels for which we have any explanations.
docstr_tok: ["Returns","the","list","of","classification","labels","for","which","we","have","any","explanations","."]
code: def available_labels(self):
      """
      Returns the list of classification labels for which we have any explanations.
      """
      try:
          assert self.mode == "classification"
      except AssertionError:
          raise NotImplementedError(
              "Not supported for regression explanations."
          )
      else:
          ans = (
              self.top_labels
              if self.top_labels
              else self.local_exp.keys()
          )
          return list(ans)
  
imports: from io import open
  import os
  import os.path
  import json
  import string
  import numpy
  from .exceptions import LimeError
  from sklearn.utils import check_random_state
label_desc: Use image node_id 2 for calling the Explanation obj's underlying member method code with example usage: obj.available_labels() and returns: list