class_docstr: string.Formatter subclass with special behavior for sequences.
  
  This class delegates the formatting of individual elements to another
  formatter object. Non-list objects are formatted by calling the
  delegate formatter's "format_field" method. List-like objects
  (list, tuple, set, frozenset) are formatted by formatting each
  element of the list according to the specified format spec using
  the delegate formatter and then joining the resulting strings with
  a separator (space by default).
class_docstr_tok: ["string.Formatter","subclass","with","special","behavior","for","sequences",".","This","class","delegates","the","formatting","of","individual","elements","to","another","formatter","object",".","Non-list","objects","are","formatted","by","calling","the","delegate","formatter","'s","``","format_field","''","method",".","List-like","objects","(","list",",","tuple",",","set",",","frozenset",")","are","formatted","by","formatting","each","element","of","the","list","according","to","the","specified","format","spec","using","the","delegate","formatter","and","then","joining","the","resulting","strings","with","a","separator","(","space","by","default",")","."]
code: def format_field(self, value, format_spec):
      if isinstance(value, Wildcards):
          return ",".join(
              f"{name}={value}"
              for name, value in sorted(
                  value.items(), key=lambda item: item[0]
              )
          )
      if isinstance(value, (list, tuple, set, frozenset)):
          return self.separator.join(
              self.format_element(v, format_spec) for v in value
          )
      else:
          return self.format_element(value, format_spec)
  
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 3 for calling the SequenceFormatter obj's underlying member method code with example usage: obj.format_field(value, format_spec) and returns: str, self, self