class_docstr: Subclass of string.Formatter that supports quoting.
  
  Using this formatter, any field can be quoted after formatting by
  appending "q" to its format string. By default, shell quoting is
  performed using "shlex.quote", but you can pass a different
  quote_func to the constructor. The quote_func simply has to take a
  string argument and return a new string representing the quoted
  form of the input string.
  
  Note that if an element after formatting is the empty string, it
  will not be quoted.
class_docstr_tok: ["Subclass","of","string.Formatter","that","supports","quoting",".","Using","this","formatter",",","any","field","can","be","quoted","after","formatting","by","appending","``","q","''","to","its","format","string",".","By","default",",","shell","quoting","is","performed","using","``","shlex.quote","''",",","but","you","can","pass","a","different","quote_func","to","the","constructor",".","The","quote_func","simply","has","to","take","a","string","argument","and","return","a","new","string","representing","the","quoted","form","of","the","input","string",".","Note","that","if","an","element","after","formatting","is","the","empty","string",",","it","will","not","be","quoted","."]
code: def __init__(self, quote_func=None, *args, **kwargs):
      if quote_func is None:
          quote_func = shlex.quote
      self.quote_func = quote_func
      super().__init__(*args, **kwargs)
  
imports: import os
  import json
  import re
  import inspect
  import textwrap
  from itertools import chain
  import collections
  import multiprocessing
  import string
  import shlex
  import sys
  from urllib.parse import urljoin
  from snakemake.io import Namedlist, Wildcards
  from snakemake.common.configfile import _load_configfile
  from snakemake.logging import logger
  from snakemake.common import ON_WINDOWS
  from snakemake.exceptions import WorkflowError
  from snakemake.io import regex_from_filepattern
label_desc: Use image node_id 1 to create a new QuotedFormatter object from inherited base classes: string with example: obj = QuotedFormatter(quote_func)