code: def _filter_attributes(attributes, extra_attrs):
      if not extra_attrs:
          return {}
  
      if extra_attrs == True:
          return attributes
  
      if etau.is_str(extra_attrs):
          extra_attrs = {extra_attrs}
      else:
          extra_attrs = set(extra_attrs)
  
      return {k: v for k, v in attributes.items() if k 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 11 for calling a global function with example usage: _filter_attributes(attributes, extra_attrs) and returns: unknown, dict, attributes