code: def qr(a, mode="reduced"):
      return ivy.qr(a, mode=mode)
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 2 for calling a global function with example usage: qr(a, mode) and returns: ivy