code: def _format_sampling(scale_type: Text) -> Optional[Text]:
      """Format Vizier scale_type for HyperParameter.sampling."""
      if scale_type == _LINEAR_SCALE:
          return _SAMPLING_LINEAR
      if scale_type == _LOG_SCALE:
          return _SAMPLING_LOG
      if scale_type == _REVERSE_LOG_SCALE:
          return _SAMPLING_REVERSE_LOG
      return None
  
imports: from typing import Any, Dict, List, Optional, Text, Union
  from keras_tuner.engine import hyperparameters
  from keras_tuner.engine import metrics_tracking
  from keras_tuner.engine import oracle
  from keras_tuner.engine import trial
  import numpy
  from tensorboard.plugins.hparams import api
label_desc: Use image node_id 14 for calling a global function with example usage: _format_sampling(scale_type) and returns: None, _SAMPLING_LINEAR, _SAMPLING_LOG, _SAMPLING_REVERSE_LOG