code: def test_ordering():
      # Check that ordering is enforced correctly by validation utilities.
      # We need to check each validation utility, because a 'copy' without
      # 'order=K' will kill the ordering.
      X = mt.ones((10, 5))
      for A in X, X.T:
          for copy in (True, False):
              B = check_array(A, order="C", copy=copy)
              assert B.flags["C_CONTIGUOUS"] is True
              B = check_array(A, order="F", copy=copy)
              assert B.flags["F_CONTIGUOUS"] is True
              if copy:
                  assert A is not B
  
imports: from itertools import product
  import numpy
  import pytest
  import scipy.sparse
  from sklearn.utils.estimator_checks import _NotAnArray
  from sklearn.utils._mocking import MockDataFrame
  from sklearn.utils._testing import assert_raise_message, assert_raises_regex
  from ....None import tensor
  from ....None import dataframe
  from ....tensor.core import Tensor
  from ..validation import check_array, check_consistent_length
label_desc: Use image node_id 1 for calling a global function with example usage: test_ordering() without return types