code: def get_min_max(o):
      if isinstance(o, CategoricalDistribution):
          o = o.values
      elif isinstance(o, Distribution):
          return (o.lower, o.upper)
  
      o = sorted(o)
      return (o[0], o[-1])
  
imports: from typing import Dict, Optional
  from scipy.stats import loguniform, randint, uniform
  from copy import copy
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: get_min_max(o) and returns: o,  o, o,  o