code: def schedule_tricks(observer, tricks, pathname, recursive):
      """
      Schedules tricks with the specified observer and for the given watch
      path.
  
      :param observer:
          The observer thread into which to schedule the trick and watch.
      :param tricks:
          A list of tricks.
      :param pathname:
          A path name which should be watched.
      :param recursive:
          ``True`` if recursive; ``False`` otherwise.
      """
      for trick in tricks:
          for name, value in list(trick.items()):
              TrickClass = load_class(name)
              handler = TrickClass(**value)
              trick_pathname = (
                  getattr(handler, "source_directory", None) or pathname
              )
              observer.schedule(handler, trick_pathname, recursive)
  
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 6 for calling a global function with example usage: schedule_tricks(observer, tricks, pathname, recursive) without return types