code: def _parse_frame_labels(attrs_dict):
      labels = {}
      for name, value in attrs_dict.items():
          if isinstance(value, list):
              labels[name] = fol.Classifications(
                  classifications=[
                      fo.Classification(label=v) for v in value
                  ]
              )
          else:
              labels[name] = fo.Classification(label=value)
  
      return labels
  
imports: from copy import deepcopy
  import logging
  import os
  import warnings
  import eta.core.serial
  import eta.core.utils
  import fiftyone
  import fiftyone.core.labels
  import fiftyone.core.metadata
  import fiftyone.core.storage
  import fiftyone.utils.data
label_desc: Use image node_id 8 for calling a global function with example usage: _parse_frame_labels(attrs_dict) and returns: labels