code: def exclude_wandb_fn(path: str, root: str) -> bool:
      return any(
          os.path.relpath(path, root).startswith(wandb_dir + os.sep)
          for wandb_dir in WANDB_DIRS
      )
  
imports: import os
  from typing import Callable, Generator, Union
label_desc: Use image node_id 3 for calling a global function with example usage: exclude_wandb_fn(path, root) and returns: any