code: def requires_disable_eager_execution(
      function: t.Callable[P, None]
  ) -> t.Callable[P, None]:
      def wrapper(*args: P.args, **kwargs: P.kwargs) -> None:
          if tf.executing_eagerly():
              pytest.skip(
                  "This test requires disable eager execution with 'tf.compat.v1.disable_eager_execution()'"
              )
          return function(*args, **kwargs)
  
      return wrapper
  
file_path: BentoML/tests/integration/frameworks/test_tensorflow_unit.py
imports: from __future__ import annotations
  import typing
  from typing import TYPE_CHECKING
  import numpy
  import pytest
  import tensorflow
  from bentoml._internal.runner.container import AutoContainer
  from bentoml._internal.runner.container import DataContainerRegistry
  from bentoml._internal.types import LazyType
label_desc: Use image node_id 1 for calling a global function with example usage: requires_disable_eager_execution(function) and returns: wrapper, function