code: def choice(categories: List) -> "tune.sample.Categorical":
      """
      Uniformly sample from a list
  
      :param categories: A list to be sampled.
      """
      return tune.choice(categories)
  
file_path: BigDL/python/orca/src/bigdl/orca/automl/hp.py
imports: import ray.tune
  import numpy
  from typing import List, Union, Callable
label_desc: Use image node_id 9 for calling a global function with example usage: choice(categories) and returns: tune