code: def check_order(
      order_str,
      available_options="KACF",
      err_msg="order not understood",
  ):
      order_str = order_str.upper()
      if order_str not in available_options:
          raise TypeError(err_msg)
  
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 30 for calling a global function with example usage: check_order(order_str, available_options, err_msg) without return types