code: def set_resource(self, name, value):
      self._args[name] = f"{value}"
      self.parsed[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 4 for calling the DefaultResources obj's underlying member method code with example usage: obj.set_resource(name, value) without return types