code: def function_dim(func_name, args, flag_name):
      if func_name is None:
          func_name = "uniform"
      if func_name == "uniform":
          return _uniform_dim(args, func_name, flag_name)
      if func_name == "loguniform":
          return _real_dim(args, "log-uniform", func_name, flag_name)
      raise InvalidSearchDimension(
          f"unknown function '{func_name}' used for flag {flag_name}"
      )
  
imports: import logging
  import os
  import typing
  import warnings
  from guild import _skopt
  from guild import batch_util
  from guild import flag_util
  from guild import op_util
  from guild import query
label_desc: Use image node_id 10 for calling a global function with example usage: function_dim(func_name, args, flag_name) and returns: _uniform_dim, _real_dim