code: def to_bigdl_3d_ordering(order):
      if order == "tf":
          return "channel_last"
      elif order == "th":
          return "channel_first"
      else:
          invalidInputError(
              False, "Unsupported dim_ordering: %s" % order
          )
  
file_path: BigDL/python/dllib/src/bigdl/dllib/keras/ToBigDLHelper.py
imports: from math import ceil
  import bigdl.dllib.nn.initialization_method
  from bigdl.dllib.utils.log4Error import *
  from bigdl.dllib.optim.optimizer import L1L2Regularizer
label_desc: Use image node_id 2 for calling a global function with example usage: to_bigdl_3d_ordering(order) and returns: str, str