parameters: (order)
return_statement: return order
docstring: Check flatten function input order
docstring_summary: Check flatten function input order
docstring_tokens: Check flatten function input order
function: def check_flatten_order(order):
          """Check flatten function input order"""
          if not isinstance(order, str):
              raise TypeError(f"The order variable should be a string, but got {type(order)}")
          if order not in ('C', 'F'):
              raise ValueError(f"only `C` and `F` are supported as order, but got {order}")
          return order
function_tokens: def check_flatten_order ( order ) : if not isinstance ( order , str ) : raise TypeError ( f"The order variable should be a string, but got {type(order)}" ) if order not in ( 'C' , 'F' ) : raise ValueError ( f"only `C` and `F` are supported as order, but got {order}" ) return order