code: def testConvertNumpyArray1DToLiteral(self):
      for array, etype, pbfield in float_arrays:
          literal = xla_literal.ConvertNumpyArrayToLiteral(
              array([1.1, 2.2, 3.3])
          )
          self.assertShape(literal.shape, [3], etype)
          self.assertLayout(literal.shape.layout, [0])
          np.testing.assert_allclose(pbfield(literal), [1.1, 2.2, 3.3])
  
imports: import collections
  import itertools
  import operator
  from absl.testing import absltest
  import numpy
  from local_xla.xla import xla_data_pb2
  from xla.python_api import xla_literal
label_desc: Use image node_id 5 for calling the XlaLiteralTest obj's underlying member method code with example usage: obj.testConvertNumpyArray1DToLiteral() without return types