code: def _rearrange_data_by_id(
      self, id_new, data_new, method_name="fit_incremental"
  ):
      from bigdl.nano.utils.common import invalidInputError
  
      if np.array_equal(self.id_arr, id_new) or id_new is None:
          return data_new
      if self.id_arr is None:
          from bigdl.nano.utils.common import invalidInputError
  
          invalidInputError(
              False,
              f"Got valid id in {method_name} and invalid id in fit.",
          )
      if set(id_new) != set(self.id_arr):
          invalidInputError(
              False,
              f"The input ids in {method_name} differs from input ids in fit.",
          )
      return data_new[[id_new.index(_) for _ in self.id_arr]]
  
imports: from abc import ABCMeta, abstractmethod
  from bigdl.chronos.model.tcmf import DeepGLO
  from bigdl.orca.automl.metrics import Evaluator
  from bigdl.orca.automl.model.abstract import BaseModel
  from bigdl.orca.data import SparkXShards, XShards
  import pickle
  import numpy
  import pandas
label_desc: Use image node_id 3 for calling the TCMFNdarrayModelWrapper obj's underlying member method code with example usage: obj._rearrange_data_by_id(id_new, data_new, method_name) and returns: data_new, data_new