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 __bool__(self) -> bool:
      return self.is_available
  
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 5 for calling the Label obj's underlying member method code with example usage: obj.__bool__() and returns: self