code: def _try_function_dim(val, flag_name):
      assert isinstance(val, str), val
      try:
          func_name, func_args = flag_util.decode_flag_function(val)
      except ValueError as e:
          raise ValueError(val, flag_name) from e
      else:
          return function_dim(func_name, func_args, 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 9 for calling a global function with example usage: _try_function_dim(val, flag_name) and returns: function_dim