code: def sampling_from_proto(sampling):
      if sampling == protos.get_proto().Sampling.LINEAR:
          return "linear"
      if sampling == protos.get_proto().Sampling.LOG:
          return "log"
      if sampling == protos.get_proto().Sampling.REVERSE_LOG:
          return "reverse_log"
      raise ValueError(
          "Expected sampling to be one of predefined proto values. "
          f"Received: '{sampling}'."
      )
  
imports: import math
  from keras_tuner import protos
label_desc: Use image node_id 1 for calling a global function with example usage: sampling_from_proto(sampling) and returns: str, str, str