code: def cartesian_product(*arrays):
      """Compute the Cartesian product in fastai algo. This is a helper function.
  
      Args:
          arrays (tuple of numpy.ndarray): Input arrays
  
      Returns:
          numpy.ndarray: product
  
      """
      la = len(arrays)
      dtype = np.result_type(*arrays)
      arr = np.empty([len(a) for a in arrays] + [la], dtype=dtype)
      for i, a in enumerate(np.ix_(*arrays)):
          arr[..., i] = a
      return arr.reshape(-1, la)
  
file_path: recommenders/recommenders/models/fastai/fastai_utils.py
imports: import numpy
  import pandas
  import fastai
  import fastprogress
  from fastprogress.fastprogress import force_console_behavior
  from recommenders.utils import constants
label_desc: Use image node_id 1 for calling a global function with example usage: cartesian_product() and returns: arr