code: def requires_watchfiles(
      test_case: t.Type[TestCase],
  ) -> t.Callable[..., t.Any]:
      return skipUnless(
          source_locations("watchfiles") is not None,
          "Requires 'watchfiles' to be installed.",
      )(test_case)
  
imports: from __future__ import annotations
  import logging
  import os
  import typing
  from pathlib import Path
  from typing import TYPE_CHECKING
  from unittest import skipUnless
  from unittest.mock import patch
  import pytest
  from circus.tests.support import TestCircus
  from bentoml._internal.utils.circus.watchfilesplugin import ServiceReloaderPlugin
  from bentoml._internal.utils.pkg import source_locations
label_desc: Use image node_id 1 for calling a global function with example usage: requires_watchfiles(test_case) and returns: skipUnless