class_docstr: Tests initialization and instance methods of the ``Dataset`` class.
docstr: Test that __delattr__ removes the attribute from the dataset
  and the underlying file.
docstr_tok: ["Test","that","__delattr__","removes","the","attribute","from","the","dataset","and","the","underlying","file","."]
code: def test_delattr(self):
      """Test that __delattr__ removes the attribute from the dataset
      and the underlying file."""
  
      ds = Dataset(x=1)
  
      del ds.x
  
      with pytest.raises(
          AttributeError, match="'Dataset' object has no attribute 'x'"
      ):
          _ = ds.x
  
      assert "x" not in ds.bind
  
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 11 for calling the TestDataset obj's underlying member method code with example usage: obj.test_delattr() without return types