code: def is_heartbeat_enabled(storage: BaseStorage) -> bool:
      """Check whether the storage enables the heartbeat.
  
      Returns:
          :obj:`True` if the storage also inherits :class:`~optuna.storages._heartbeat.BaseHeartbeat`
          and the return value of :meth:`~optuna.storages.BaseStorage.get_heartbeat_interval` is an
          integer, otherwise :obj:`False`.
      """
      return (
          isinstance(storage, BaseHeartbeat)
          and storage.get_heartbeat_interval() is not None
      )
  
imports: import abc
  import copy
  from threading import Event
  from threading import Thread
  from types import TracebackType
  from typing import Callable
  from typing import List
  from typing import Optional
  from typing import Type
  import optuna
  from optuna._experimental import experimental_func
  from optuna.storages import BaseStorage
  from optuna.trial import FrozenTrial
  from optuna.trial import TrialState
label_desc: Use image node_id 3 for calling a global function with example usage: is_heartbeat_enabled(storage) and returns: unknown