class_docstr: Patches `yaml` to strictly adhere to the YAML spec*.
  
  Maybe used as a no-op with `StrictPatch(False)`.
  
  * This patch makes no guarantee of strict correctness but rather
    fixes known issues with PyYAML:
  
    - Encoding/decoding of single char boolean chars `[yYnN]`
class_docstr_tok: ["Patches","`","yaml","`","to","strictly","adhere","to","the","YAML","spec","*",".","Maybe","used","as","a","no-op","with","`","StrictPatch","(","False",")","`",".","*","This","patch","makes","no","guarantee","of","strict","correctness","but","rather","fixes","known","issues","with","PyYAML",":","-","Encoding\/decoding","of","single","char","boolean","chars","`","[","yYnN","]","`"]
code: def __exit__(self, *_exc):
      if not self.strict:
          return
      self._unapply_implicit_resolver_patches()
      self._unapply_bool_value_patches()
  
file_path: guildai/guild/yaml_util.py
imports: import os
  import re
  import yaml
label_desc: Use image node_id 5 for calling the StrictPatch obj's underlying member method code with example usage: obj.__exit__() without return types