code: def _load_data(dir_path=None):
      """Loads and prepares data."""
  
      mnist_file_path = None
      if dir_path:
          mnist_file_path = os.path.join(dir_path, "mnist.npz")
  
      (x, y), (val_x, val_y) = keras.datasets.mnist.load_data(
          mnist_file_path
      )
      x = x.astype("float32") / 255.0
      val_x = val_x.astype("float32") / 255.0
  
      return ((x[:10000], y[:10000]), (val_x, val_y))
  
imports: import contextlib
  import io
  import os
  import re
  import keras_tuner
  import tensorflow
  from tensorflow import keras
  from tensorflow_cloud.tuner import vizier_client
  from tensorflow_cloud.tuner.tuner import DistributingCloudTuner
label_desc: Use image node_id 1 for calling a global function with example usage: _load_data(dir_path) and returns: x,  y,  val_x,  val_y