code: def _attr_items(x):
      attrs = getattr(type(x), "__attrs_attrs__")
      attr_names = [a.name for a in attrs]
      return [
          (attr_name, getattr(x, attr_name)) for attr_name in attr_names
      ]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import numbers
  from typing import Optional, Text
  from absl import logging
  import numpy
  from six.moves import zip
  import tensorflow
  from tf_agents.typing import types
  from tf_agents.utils import composite
  import wrapt
  from tensorflow.python.util import nest
label_desc: Use image node_id 8 for calling a global function with example usage: _attr_items(x) and returns: unknown