code: def _ipy_objective_colspec(minimize, maximize):
      if minimize and maximize:
          raise ValueError(
              "minimize and maximize cannot both be specified"
          )
      if not minimize and not maximize:
          return DEFAULT_OBJECTIVE, 1
      if minimize:
          return minimize, 1
      assert maximize
      return maximize, -1
  
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 28 for calling a global function with example usage: _ipy_objective_colspec(minimize, maximize) and returns: maximize,  unknown, DEFAULT_OBJECTIVE,  int, minimize,  int