code: def is_array_contiguous(arr):
      """Return true if array is C or F contiguous"""
      try:  # Fast path for CumlArray
          return arr.is_contiguous
      except AttributeError:
          pass
      try:  # Fast path for cupy/numpy arrays
          return arr.flags["C_CONTIGUOUS"] or arr.flags["F_CONTIGUOUS"]
      except (AttributeError, KeyError):
          return array_to_memory_order(arr) is not None
  
imports: import copy
  import operator
  import pickle
  from cuml.internals.global_settings import GlobalSettings
  from cuml.internals.logger import debug
  from cuml.internals.mem_type import MemoryType, MemoryTypeError
  from cuml.internals.memory_utils import class_with_cupy_rmm, with_cupy_rmm
  from cuml.internals.safe_imports import cpu_only_import, cpu_only_import_from, gpu_only_import, gpu_only_import_from, null_decorator, return_false, safe_import, safe_import_from
  from typing import Tuple
label_desc: Use image node_id 4 for calling a global function with example usage: is_array_contiguous(arr) and returns: arr, unknown, unknown