code: def pagelocked_empty_like(array, mem_flags=0):
      if array.flags.c_contiguous:
          order = "C"
      elif array.flags.f_contiguous:
          order = "F"
      else:
          raise ValueError("could not detect array order")
  
      return pagelocked_empty(
          array.shape, array.dtype, order, mem_flags
      )
  
imports: import os
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: pagelocked_empty_like(array, mem_flags) and returns: pagelocked_empty