code: def assoc(d, key, val):
      """Return copy of d with key associated to val"""
      d = d.copy()
      d[key] = val
      return d
  
imports: from sympy.utilities.iterables import kbins
label_desc: Use image node_id 4 for calling a global function with example usage: assoc(d, key, val) and returns: d