code: def flag_dims(flags):
      """Return flag names, dims, and initials for flags.
  
      Only flag value that correspond to searchable dimensions are
      returned. Scalars and non-function string values are not included
      in the result.
      """
      dims = {}
      initials = {}
      for name, val in flags.items():
          try:
              flag_dim, initial = _flag_dim(val, name)
          except ValueError:
              pass
          else:
              dims[name] = flag_dim
              initials[name] = initial
      names = sorted(dims)
      return (
          names,
          [dims[name] for name in names],
          [initials[name] for name in names],
      )
  
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 6 for calling a global function with example usage: flag_dims(flags) and returns: names,  unknown,  unknown