code: def _get_attributes(label, extra_attrs):
      if extra_attrs == True:
          return dict(label.iter_attributes())
  
      if extra_attrs == False:
          return {}
  
      if etau.is_str(extra_attrs):
          extra_attrs = [extra_attrs]
  
      return {
          name: label.get_attribute_value(name, None)
          for name in extra_attrs
      }
  
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 15 for calling a global function with example usage: _get_attributes(label, extra_attrs) and returns: unknown, dict, dict