code: def encode_arg(cls, name, value):
      return f"{name}={value}"
  
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 2 for calling the DefaultResources obj's underlying member method code with example usage: obj.encode_arg(cls, name, value) and returns: name, str, value