class_docstr: Class to represent labels in a dataset.
  
  It stores the labels as a numpy array and maps them to integers if necessary.
  If a mapping is not necessary, e.g. for regression tasks, the mapping will be an empty dictionary.
  
  Parameters
  ----------
  data :
      A Hugging Face Dataset object.
  
  label_name : str
      Name of the label column in the dataset.
  
  map_to_int : bool
      Whether to map the labels to integers, e.g. [0, 1, ..., K-1] where K is the number of classes.
      If False, the labels are not mapped to integers, e.g. for regression tasks.
code: def __eq__(self, __value: object) -> bool:
      if isinstance(__value, Label):
          labels_are_equal = np.array_equal(self.labels, __value.labels)
          names_are_equal = self.label_name == __value.label_name
          maps_are_equal = self.label_map == __value.label_map
          return all(
              [labels_are_equal, names_are_equal, maps_are_equal]
          )
      return False
  
imports: import os
  from typing import Any, Callable, Dict, List, Mapping, Optional, Tuple, Union, cast, TYPE_CHECKING
  import numpy
  import pandas
  from datasets.arrow_dataset import Dataset
  from datasets import ClassLabel
  from cleanlab.internal.validation import labels_to_array
label_desc: Use image node_id 3 for calling the Label obj's underlying member method code with example usage: obj.__eq__(__value) and returns: False, all