code: def serialize_block_arg(arg):
      if isinstance(arg, hyperparameters.HyperParameter):
          return hyperparameters.serialize(arg)
      return arg
  
file_path: autokeras/autokeras/utils/io_utils.py
imports: import json
  import multiprocessing
  import os
  from typing import Optional
  from typing import Tuple
  import numpy
  import tensorflow
  from keras_tuner.engine import hyperparameters
label_desc: Use image node_id 11 for calling a global function with example usage: serialize_block_arg(arg) and returns: arg, hyperparameters