code: def test_task_stats(reset_usage_stats):
      @ray.remote
      def foo():
          pass
  
      with ray.init(
          _system_config={"metrics_report_interval_ms": 1000},
      ) as ctx:
          gcs_client = ray._raylet.GcsClient(
              address=ctx.address_info["gcs_address"]
          )
  
          wait_for_condition(
              lambda: ray_usage_lib.get_extra_usage_tags_to_report(
                  gcs_client
              ).get("num_normal_tasks")
              == "0"
              and ray_usage_lib.get_extra_usage_tags_to_report(
                  gcs_client
              ).get("num_drivers")
              == "1",
              timeout=10,
          )
          ray.get(foo.remote())
          wait_for_condition(
              lambda: ray_usage_lib.get_extra_usage_tags_to_report(
                  gcs_client
              ).get("num_normal_tasks")
              == "1",
              timeout=10,
          )
          ray.get(foo.remote())
          wait_for_condition(
              lambda: ray_usage_lib.get_extra_usage_tags_to_report(
                  gcs_client
              ).get("num_normal_tasks")
              == "2"
              and ray_usage_lib.get_extra_usage_tags_to_report(
                  gcs_client
              ).get("num_drivers")
              == "1",
              timeout=10,
          )
  
imports: import json
  import os
  import pathlib
  import sys
  import time
  from dataclasses import asdict
  from pathlib import Path
  from unittest.mock import patch
  import requests
  import pytest
  from jsonschema import validate
  from http.server import BaseHTTPRequestHandler, HTTPServer
  import ray
  import ray._private.usage.usage_constants
  import ray._private.usage.usage_lib
  from ray._private.test_utils import format_web_url, run_string_as_driver, wait_for_condition, wait_until_server_available
  from ray._private.usage.usage_lib import ClusterConfigToReport, UsageStatsEnabledness
  from ray.autoscaler._private.cli_logger import cli_logger
  from ray.util.placement_group import placement_group
  from ray._private.accelerators import NvidiaGPUAcceleratorManager
label_desc: Use image node_id 11 for calling a global function with example usage: test_task_stats(reset_usage_stats) without return types