code: def patch_yaml_resolver():
      """Patch yaml parsing to support Guild specific resolution rules.
  
      - Make '+' or '-' optional in scientific notation
      - Make use of decimal '.' optional in scientific notation
  
      This patch replaces the default 'tag:yaml.org,2002:float' resolver
      with an augmented set of regex patterns. Refer to
      `yaml/resolver.py` for the original patterns.
      """
      yaml.resolver.Resolver.add_implicit_resolver(
          "tag:yaml.org,2002:float",
          # The patterns below are modified from the original set in two
          # ways: the first pattern makes `[-+]` optional and the second
          # is a new pattern to match scientific notation that
          # does not include a decimal (e.g. `1e2`).
          re.compile(
              r"""^(?:[-+]?(?:[0-9][0-9_]*)\.[0-9_]*(?:[eE][-+]?[0-9]+)?
                      |[-+]?(?:[0-9][0-9_]*)(?:[eE][-+]?[0-9]+)
                      |\.[0-9_]+(?:[eE][-+][0-9]+)?
                      |[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*
                      |[-+]?\.(?:inf|Inf|INF)
                      |\.(?:nan|NaN|NAN))$""",
              re.X,
          ),
          list("-+0123456789."),
      )
  
file_path: guildai/guild/yaml_util.py
imports: import os
  import re
  import yaml
label_desc: Use image node_id 6 for calling a global function with example usage: patch_yaml_resolver() without return types