code: def _parse_new_contract_args(*args, **kwargs):
      
      # No arguments
      if (not args) and (not kwargs):
          return [
              {
                  "name": "argument_invalid",
                  "msg": "Argument `*[argument_name]*` is not valid",
                  "type": RuntimeError,
              }
          ]
      # Process args
      if (len(args) > 1) or ((len(args) == 1) and kwargs):
          raise TypeError("Illegal custom contract exception definition")
      if len(args) == 1:
          return [dict([("name", "default")] + list(_format_arg(args[0]).items()))]
      # Process kwargs
      return [
          dict([("name", name)] + list(_format_arg(kwargs[name]).items()))
          for name in sorted(list(kwargs.keys()))
      ]
docs: Parse argument for new_contract() function.