class_docstr: Tests for DatasetAttribute.
docstr: Test that a TypeError is raised when the bind contains
  a dataset attribute of a different type.
code: def test_bind_init_from_other_bind(self):
      """Test that a TypeError is raised when the bind contains
      a dataset attribute of a different type."""
  
      attr = DatasetNone()
  
      with pytest.raises(
          TypeError,
          match="'bind' is bound to another attribute type 'none'",
      ):
          DatasetString(bind=attr.bind)
  
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 4 for calling the TestAttribute obj's underlying member method code with example usage: obj.test_bind_init_from_other_bind() without return types