code: def test_track_serve_do_not_track(
      mock_do_not_track: MagicMock, simple_service: Service
  ):
      mock_do_not_track.return_value = True
      with analytics.track_serve(
          simple_service,
          production=False,
          serve_info=analytics.usage_stats.get_serve_info(),
      ) as output:
          pass
  
      assert not output
      assert mock_do_not_track.called
  
imports: from __future__ import annotations
  import logging
  import typing
  from typing import TYPE_CHECKING
  from unittest.mock import Mock
  from unittest.mock import patch
  import pytest
  from prometheus_client.parser import text_string_to_metric_families
  from schema import And
  from schema import Or
  from schema import Schema
  import bentoml
  from bentoml._internal.utils import analytics
label_desc: Use image node_id 9 for calling a global function with example usage: test_track_serve_do_not_track(mock_do_not_track, simple_service) without return types