class_docstr: Tests for the tensor.unwrap() and tensor.numpy() methods
class_docstr_tok: ["Tests","for","the","tensor.unwrap","(",")","and","tensor.numpy","(",")","methods"]
docstr: Test that a scalar array converts to a python literal
docstr_tok: ["Test","that","a","scalar","array","converts","to","a","python","literal"]
code: def test_convert_scalar_array(self):
      """Test that a scalar array converts to a python literal"""
      data = np.array(1.543)
      res = data.unwrap()
      assert res == data.item()
      assert isinstance(res, float)
  
imports: import numpy
  import pytest
  from autograd.numpy.numpy_boxes import ArrayBox
  import pennylane
  from pennylane import numpy
  from pennylane.numpy.tensor import tensor_to_arraybox
label_desc: Use image node_id 1 for calling the TestNumpyConversion obj's underlying member method code with example usage: obj.test_convert_scalar_array() without return types