code: def has_attribute(ob, attribute):
      """
      :func:`hasattr` swallows exceptions. :func:`has_attribute` tests a Python object for the
      presence of an attribute.
  
      :param ob:
          object to inspect
      :param attribute:
          ``str`` for the name of the attribute.
      """
      return getattr(ob, attribute, None) is not None
  
file_path: wandb/wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/__init__.py
imports: import os
  import sys
  import threading
  from wandb_watchdog.utils import platform
  from wandb_watchdog.utils.compat import Event
label_desc: Use image node_id 1 for calling a global function with example usage: has_attribute(ob, attribute) and returns: unknown