code: def get_order(
      order_str,
      to_keep_order,
      available_options="KACF",
      err_msg="order not understood",
  ):
      from .core import TensorOrder
  
      check_order(
          order_str,
          available_options=available_options,
          err_msg=err_msg,
      )
  
      if order_str in "KA":
          return to_keep_order
      elif order_str == "C":
          return TensorOrder.C_ORDER
      else:
          return TensorOrder.F_ORDER
  
imports: import inspect
  import itertools
  import operator
  from collections import OrderedDict
  from collections.abc import Iterable
  from functools import lru_cache, reduce, wraps
  from math import ceil
  from numbers import Integral
  from typing import Dict, List, Union
  import numpy
  from ..core import ExecutableTuple, recursive_tile
  from ..utils import lazy_import
  from ..lib.mmh3 import hash_from_buffer
label_desc: Use image node_id 31 for calling a global function with example usage: get_order(order_str, to_keep_order, available_options, err_msg) and returns: to_keep_order, TensorOrder, TensorOrder