code: def testEndianness(self):
      self.assertAllEqual(
          [[0x04030201]],
          parsing_ops.decode_raw(
              ["\x01\x02\x03\x04"], dtypes.int32, little_endian=True
          ),
      )
      self.assertAllEqual(
          [[0x01020304]],
          parsing_ops.decode_raw(
              ["\x01\x02\x03\x04"], dtypes.int32, little_endian=False
          ),
      )
      self.assertAllEqual(
          [[1 + 2j]],
          parsing_ops.decode_raw(
              [b"\x00\x00\x80?\x00\x00\x00@"],
              dtypes.complex64,
              little_endian=True,
          ),
      )
      self.assertAllEqual(
          [[1 + 2j]],
          parsing_ops.decode_raw(
              [b"?\x80\x00\x00@\x00\x00\x00"],
              dtypes.complex64,
              little_endian=False,
          ),
      )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/image_ops/decode_raw_op_test.py
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import parsing_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the DecodeRawOpTest obj's underlying member method code with example usage: obj.testEndianness() without return types