code: def validation_data_creator(config, batch_size):
      val_dataset = LinearDataset(
          2, 5, size=config.get("val_size", 400)
      )
      validation_loader = torch.utils.data.DataLoader(
          val_dataset, batch_size=batch_size
      )
      return validation_loader
  
file_path: BigDL/python/orca/example/learn/horovod/pytorch_estimator.py
imports: import argparse
  import numpy
  import torch
  import torch.nn
  from bigdl.orca import init_orca_context, stop_orca_context
  from bigdl.orca.learn.pytorch import Estimator
label_desc: Use image node_id 5 for calling a global function with example usage: validation_data_creator(config, batch_size) and returns: validation_loader