code: def _to_classification(label):
      if label is None:
          return label
  
      return fol.Classification(
          label=label.label,
          confidence=label.confidence,
          **dict(label.iter_attributes()),
      )
  
file_path: fiftyone/fiftyone/utils/patches.py
imports: import cv2
  import fiftyone.core.frame
  import fiftyone.core.labels
  import fiftyone.core.validation
  import fiftyone.utils.eta
  import fiftyone.utils.image
label_desc: Use image node_id 4 for calling a global function with example usage: _to_classification(label) and returns: fol, label