class_docstr: Tests initialization and instance methods of the ``Dataset`` class.
docstr: Test the __delattr__ raises an AttributeError if the attribute
  does not exist.
docstr_tok: ["Test","the","__delattr__","raises","an","AttributeError","if","the","attribute","does","not","exist","."]
code: def test_delattr_no_such_attribute(self):
      """Test the __delattr__ raises an AttributeError if the attribute
      does not exist."""
  
      ds = Dataset(y=1)
  
      with pytest.raises(
          AttributeError, match="'Dataset' object has no attribute 'x'"
      ):
          del ds.x
  
imports: from numbers import Number
  from pathlib import Path
  from typing import ClassVar, Dict
  import numpy
  import pytest
  from pennylane.data import AttributeInfo, Dataset, DatasetJSON, DatasetNotWriteableError, DatasetScalar, attribute, field
  from pennylane.data.base.dataset import UNSET, _init_arg
  from pennylane.data.base.hdf5 import open_group
label_desc: Use image node_id 12 for calling the TestDataset obj's underlying member method code with example usage: obj.test_delattr_no_such_attribute() without return types