code: def _check_shape(input1, input2, input_name1, input_name2):
      invalidInputError(
          input1.shape == input2.shape,
          f"{input_name1} does not have same input as {input_name2}, "
          f"{input_name1} has a shape as {input1.shape} while "
          f"{input_name2} has a shape as {input2.shape}.",
      )
  
file_path: BigDL/python/chronos/src/bigdl/chronos/metric/forecast_metrics.py
imports: from numpy import ndarray
  import numpy
  from bigdl.nano.utils.common import invalidInputError
  from timeit import repeat
  import random
label_desc: Use image node_id 8 for calling a global function with example usage: _check_shape(input1, input2, input_name1, input_name2) without return types