code: def _change_order_if_necessary(a, lda):
      if lda is None:
          lda = a.shape[0]
          if not a._f_contiguous:
              a = a.copy(order="F")
      return a, lda
  
imports: import numpy
  from numpy import linalg
  import warnings
  import cupy
  from cupy import _core
  from cupy_backends.cuda.libs import cublas
  from cupy.cuda import device
  from cupy.linalg import _util
label_desc: Use image node_id 25 for calling a global function with example usage: _change_order_if_necessary(a, lda) and returns: a,  lda