code: def __str__(self):
      parts = ["include" if self.result else "exclude"]
      if self.type:
          parts.append(self.type)
      parts.append(
          ", ".join([_quote_pattern(p) for p in self.patterns])
      )
      extras = self._format_file_select_rule_extras()
      if extras:
          parts.append(extras)
      return " ".join(parts)
  
imports: import fnmatch
  import glob
  import logging
  import os
  import re
  import shutil
  from guild import util
label_desc: Use image node_id 2 for calling the FileSelectRule obj's underlying member method code with example usage: obj.__str__() and returns: str