docstr: Test that a DatasetArray is correctly value-initialized.
docstr_tok: ["Test","that","a","DatasetArray","is","correctly","value-initialized","."]
code: def test_value_init(self, value, interface, py_type):
      """Test that a DatasetArray is correctly value-initialized."""
      arr = DatasetArray(value)
  
      assert isinstance(arr.get_value(), type(value))
      assert (arr.get_value() == value).all()
      assert arr.bind.dtype == value.dtype
      assert arr.info.py_type == py_type
      assert arr.info.type_id == "array"
      assert arr.info["array_interface"] == interface
  
file_path: pennylane/tests/data/attributes/test_array.py
imports: import numpy
  import pytest
  import pennylane.data.attributes.array
  from pennylane import numpy
  from pennylane.data.attributes import DatasetArray
label_desc: Use image node_id 1 for calling the TestDatasetArray obj's underlying member method code with example usage: obj.test_value_init(value, interface, py_type) without return types