docstr: Check if a path has been modified since launch and contains tfevents.
docstr_tok: ["Check","if","a","path","has","been","modified","since","launch","and","contains","tfevents","."]
code: def _is_our_tfevents_file(self, path: str) -> bool:
      """Check if a path has been modified since launch and contains tfevents."""
      if not path:
          raise ValueError("Path must be a nonempty string")
      path = self.tf_compat.tf.compat.as_str_any(path)
      if self._force:
          return is_tfevents_file_created_by(path, None, None)
      else:
          return is_tfevents_file_created_by(
              path,
              self._hostname,
              self._tbwatcher._settings._start_time,
          )
  
imports: import glob
  import logging
  import os
  import queue
  import socket
  import sys
  import threading
  import time
  from typing import TYPE_CHECKING, Any, Dict, List, Optional
  import wandb
  from wandb import util
  from wandb.sdk.interface.interface import GlobStr
  from wandb.sdk.lib import filesystem
  from wandb.viz import CustomChart
  from .None import run
label_desc: Use image node_id 3 for calling the TBDirWatcher obj's underlying member method code with example usage: obj._is_our_tfevents_file(path) and returns: is_tfevents_file_created_by, is_tfevents_file_created_by