code: def use_derivatives(optimizer):
      if optimizer in ("simplex", "powell"):
          return False
      else:
          return True
  
imports: from scipy.optimize import fmin
  from scipy.optimize import fmin_bfgs, fmin_cg, fmin_ncg, fmin_powell
  from ..optimize import fmin_steepest
label_desc: Use image node_id 3 for calling a global function with example usage: use_derivatives(optimizer) and returns: False, True