code: def emitter(self) -> Optional["wd_api.EventEmitter"]:
      try:
          return next(iter(self._file_observer.emitters))
      except StopIteration:
          return None
  
imports: import abc
  import fnmatch
  import glob
  import logging
  import os
  import queue
  import time
  from typing import TYPE_CHECKING, Any, Mapping, MutableMapping, MutableSet, Optional
  from wandb import util
  from wandb.sdk.interface.interface import GlobStr
  from wandb.sdk.lib.paths import LogicalPath
label_desc: Use image node_id 2 for calling the DirWatcher obj's underlying member method code with example usage: obj.emitter() and returns: next, None