code: def get_samples(
      jsonschema_property: Dict[str, Any]
  ) -> List[ParameterBaseTypes]:
      """Get possible values for a leaf property (no sub-properties).
  
      Args:
          jsonschema_property: leaf property in the schema. Has no sub-properties.
      """
      if "oneOf" in jsonschema_property:
          temp = []
          for elem in jsonschema_property["oneOf"]:
              temp += get_potential_values(elem)
          return temp
      else:
          return get_potential_values(jsonschema_property)
  
imports: import copy
  import random
  from collections import deque, namedtuple
  from typing import Any, Deque, Dict, List, Tuple, Union
  import pandas
  from ludwig.config_sampling.parameter_sampling import handle_property_type, ParameterBaseTypes
  from ludwig.constants import SEQUENCE, TEXT, TIMESERIES
  from ludwig.data.dataset_synthesizer import build_synthetic_dataset_df
  from ludwig.schema.model_types.base import ModelConfig
  from ludwig.types import ModelConfigDict
  from ludwig.utils.misc_utils import merge_dict
label_desc: Use image node_id 2 for calling a global function with example usage: get_samples(jsonschema_property) and returns: temp, get_potential_values