class_docstr: The Tuning objective for HPO.
code: def _fix_data_args(
      self,
      model: "pl.LightningModule",
      train_dataloaders: Optional[
          Union[TRAIN_DATALOADERS, LightningDataModule]
      ] = None,
      val_dataloaders: Optional[EVAL_DATALOADERS] = None,
      datamodule: Optional[LightningDataModule] = None,
      train_dataloader=None,  # noqa TODO: remove with 1.6
  ):
      if train_dataloader is not None:
          rank_zero_deprecation(
              "`trainer.search(train_dataloader)` is deprecated in v1.4"
              "and will be removed in v1.6."
              " Use `trainer.search(train_dataloaders)` instead. "
              "HINT: added 's'"
          )
          train_dataloaders = train_dataloader
      # if a datamodule comes in as the second arg, then fix it for the user
      if isinstance(train_dataloaders, LightningDataModule):
          datamodule = train_dataloaders
          train_dataloaders = None
      # If you supply a datamodule you can't supply train_dataloader or val_dataloaders
      if (
          train_dataloaders is not None or val_dataloaders is not None
      ) and datamodule is not None:
          invalidInputError(
              False,
              "You cannot pass `train_dataloader`"
              "or `val_dataloaders` to `trainer.search(datamodule=...)`",
          )
      return train_dataloaders, val_dataloaders, datamodule
  
imports: from collections import namedtuple
  from typing import Optional, Union
  import pytorch_lightning
  from pytorch_lightning.utilities.types import EVAL_DATALOADERS, TRAIN_DATALOADERS
  from pytorch_lightning.utilities import rank_zero_deprecation
  from pytorch_lightning.core.datamodule import LightningDataModule
  from bigdl.nano.pytorch import InferenceOptimizer
  from bigdl.nano.automl.hpo.backend import create_pl_pruning_callback
  from bigdl.nano.utils.common import invalidInputError
  from ._helper import LatencyCallback, _remove_metric_prefix, BestMetricCallback
  import inspect
  import copy
label_desc: Use image node_id 5 for calling the Objective obj's underlying member method code with example usage: obj._fix_data_args(model, train_dataloaders, val_dataloaders, datamodule, train_dataloader) and returns: train_dataloaders,  val_dataloaders,  datamodule