docstr: Test that a TypeError is raised if value initialized with an
  incompatible array type.
docstr_tok: ["Test","that","a","TypeError","is","raised","if","value","initialized","with","an","incompatible","array","type","."]
code: def test_value_init_invalid_interface(self, monkeypatch, interface):
      """Test that a TypeError is raised if value initialized with an
      incompatible array type."""
      monkeypatch.setattr(
          pennylane.data.attributes.array,
          "get_interface",
          lambda _: interface,
      )
  
      with pytest.raises(TypeError):
          DatasetArray([1, 2, 3, 4])
  
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 3 for calling the TestDatasetArray obj's underlying member method code with example usage: obj.test_value_init_invalid_interface(monkeypatch, interface) without return types