code: def get_input_type(x, y=None):
      if isinstance(x, pd.DataFrame):
          if y is not None and not isinstance(y, pd.DataFrame):
              invalidInputError(
                  False,
                  f"Feature is DataFrame, label should be DataFrame,"
                  f" but got {type(y)}",
              )
          return "DataFrame"
      elif isinstance(x, np.ndarray):
          if y is not None and not isinstance(y, np.ndarray):
              invalidInputError(
                  False,
                  f"Feature is Numpy NdArray, label should be Numpy NdArray,"
                  f" but got {type(y)}",
              )
          return "NdArray"
      else:
          invalidInputError(
              False,
              f"Supported argument types: DataFrame, NdArray, but got {type(x)}",
          )
  
imports: import pandas
  import numpy
  from bigdl.ppml.fl import *
  from bigdl.dllib.utils.log4Error import invalidInputError
label_desc: Use image node_id 1 for calling a global function with example usage: get_input_type(x, y) and returns: str, str