code: def get_parquet_files(path, num_files=0):
      path = os.path.expanduser(path)
      if not os.path.exists(path):
          raise ValueError(f"Path does not exist: {path}")
  
      files = sorted(glob.glob(f"{path}/**/*.parquet"))
      while num_files > len(files):
          files = files + files
      return files[0:num_files]
  
imports: import glob
  import os
  import time
  import ray
  from xgboost_ray import train, RayDMatrix, RayFileType, RayDeviceQuantileDMatrix, RayParams
  from xgboost_ray.session import get_actor_rank, put_queue
  from xgboost.callback import TrainingCallback
  from xgboost.rabit import get_world_size
label_desc: Use image node_id 1 for calling a global function with example usage: get_parquet_files(path, num_files) and returns: files