class_docstr: Tests for DatasetAttribute.
docstr: Test that a ValueError is raised when the bind
  does not contain a dataset attribute.
code: def test_bind_init_from_invalid_bind(self):
      """Test that a ValueError is raised when the bind
      does not contain a dataset attribute."""
  
      with pytest.raises(
          ValueError,
          match="'bind' does not contain a dataset attribute.",
      ):
          DatasetNone(bind=create_group())
  
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 3 for calling the TestAttribute obj's underlying member method code with example usage: obj.test_bind_init_from_invalid_bind() without return types