code: def op_canonicalize(op_name, parsed_op):
      
      global CANONICALIZE_METHODS
  
      if op_name not in CANONICALIZE_METHODS:
          # no canonicalization needed
          return parsed_op
      else:
          return CANONICALIZE_METHODS[op_name](parsed_op)
docs: Get the canonical representation of a parsed operation's data.
      Meant for backwards-compatibility