code: def parse_patterns(
      patterns_spec, ignore_patterns_spec, separator=";"
  ):
      """
      Parses pattern argument specs and returns a two-tuple of
      (patterns, ignore_patterns).
      """
      patterns = patterns_spec.split(separator)
      ignore_patterns = ignore_patterns_spec.split(separator)
      if ignore_patterns == [""]:
          ignore_patterns = []
      return (patterns, ignore_patterns)
  
file_path: wandb/wandb/vendor/watchdog_0_9_0/wandb_watchdog/watchmedo.py
imports: import os.path
  import sys
  import yaml
  import time
  import logging
  from argh import arg, aliases, ArghParser, expects_obj
  from wandb_watchdog.version import VERSION_STRING
  from wandb_watchdog.utils import load_class
label_desc: Use image node_id 4 for calling a global function with example usage: parse_patterns(patterns_spec, ignore_patterns_spec, separator) and returns: patterns,  ignore_patterns