code: def subdict(dic, keys):
      sdic = {}
      for k in keys:
          sdic[k] = dic[k]
      return sdic
  
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 1 for calling a global function with example usage: subdict(dic, keys) and returns: sdic