code: def test_np_empty():
      # (input dtype, expected output dtype)
      dtype_pairs = [
          (np.int8, np.int8),
          (np.int32, np.int32),
          (np.float16, np.float16),
          (np.float32, np.float32),
          (np.float64, np.float64),
          (np.bool_, np.bool_),
          (np.bool, np.bool_),
          ("int8", np.int8),
          ("int32", np.int32),
          ("float16", np.float16),
          ("float32", np.float32),
          ("float64", np.float64),
          ("bool", np.bool_),
          (None, np.float32),
      ]
      orders = ["C", "F", "A"]
      shapes = [
          (),
          0,
          (0,),
          (0, 0),
          2,
          (2,),
          (3, 0),
          (4, 5),
          (1, 1, 1, 1),
      ]
      devices = [npx.current_device(), None]
      for dtype, expected_dtype in dtype_pairs:
          for shape in shapes:
              for order in orders:
                  for device in devices:
                      if order == "C":
                          ret = np.empty(
                              shape,
                              dtype=dtype,
                              order=order,
                              device=device,
                          )
                          assert ret.dtype == expected_dtype
                          assert (
                              ret.shape == shape
                              if isinstance(shape, tuple)
                              else (shape,)
                          )
                          assert ret.device == npx.current_device()
                      else:
                          assert_exception(
                              np.empty,
                              NotImplementedError,
                              shape,
                              dtype=dtype,
                              order=order,
                              device=device,
                          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  import itertools
  import os
  import pytest
  import operator
  import numpy
  import mxnet
  from mxnet import np, npx, autograd
  from mxnet.gluon import HybridBlock
  from mxnet.test_utils import same, assert_almost_equal, rand_shape_nd, rand_ndarray, use_np
  from common import retry, TemporaryDirectory, xfail_when_nonstandard_decimal_separator
  from mxnet.test_utils import verify_generator, gen_buckets_probs_with_ppf, assert_exception, is_op_runnable, collapse_sum_like
  from mxnet.ndarray.ndarray import py_slice
  from mxnet.base import integer_types
label_desc: Use image node_id 1 for calling a global function with example usage: test_np_empty() without return types