code: def patch_decorators_uuid_generator_func(
      mocker: MockerFixture,
  ):  # noqa: PT004
      call_num = 0
  
      def _generate_sequential_uuid():
          nonlocal call_num
          call_num += 1
          return UUID_String(f"callnum_{call_num}")
  
      mocker.patch(
          "flash.core.serve.decorators.uuid4",
          side_effect=_generate_sequential_uuid,
      )
  
file_path: lightning-flash/tests/conftest.py
imports: import os
  import pathlib
  import shutil
  import pytest
  import torch
  from flash.core.serve.decorators import uuid4
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE, _TORCHVISION_AVAILABLE
  from pytest_mock import MockerFixture
label_desc: Use image node_id 1 for calling a global function with example usage: patch_decorators_uuid_generator_func(mocker) and returns: UUID_String