code: def decode_arg(cls, arg):
      try:
          return arg.split("=", maxsplit=1)
      except ValueError:
          raise ValueError(
              "Resources have to be defined as name=value pairs."
          )
  
imports: from collections import UserDict, defaultdict
  import itertools
  import operator
  import re
  import tempfile
  from snakemake.exceptions import ResourceScopesException, WorkflowError
  from snakemake.common.tbdstring import TBDString
label_desc: Use image node_id 1 for calling the DefaultResources obj's underlying member method code with example usage: obj.decode_arg(cls, arg) and returns: arg