class_docstr: Tests for ``AttributeInfo``.
docstr: Test that doc can be set.
code: def test_doc(self, kwargs, doc):
      """Test that doc can be set."""
      info = AttributeInfo(**kwargs)
  
      assert info.doc == doc
  
imports: from copy import copy, deepcopy
  from typing import Any, Iterable, List
  import numpy
  import pytest
  from pennylane.data.attributes import DatasetArray, DatasetList, DatasetNone, DatasetOperator, DatasetScalar, DatasetSparseArray, DatasetString, DatasetTuple
  from pennylane.data.base.attribute import UNSET, AttributeInfo, DatasetAttribute, attribute, match_obj_type
  from pennylane.data.base.hdf5 import HDF5Group, create_group
label_desc: Use image node_id 2 for calling the TestAttributeInfo obj's underlying member method code with example usage: obj.test_doc(kwargs, doc) without return types