code: def set_usage_stats_enabled_via_env_var(enabled) -> None:
      os.environ[usage_constant.USAGE_STATS_ENABLED_ENV_VAR] = (
          "1" if enabled else "0"
      )
  
imports: import json
  import logging
  import threading
  import os
  import platform
  import sys
  import time
  import uuid
  from dataclasses import asdict, dataclass
  from enum import Enum, auto
  from pathlib import Path
  from typing import Dict, List, Optional, Set
  import requests
  import yaml
  import ray
  import ray._private.ray_constants
  import ray._private.usage.usage_constants
  from ray.experimental.internal_kv import _internal_kv_initialized, _internal_kv_put
  from ray.core.generated import usage_pb2, gcs_pb2
label_desc: Use image node_id 23 for calling a global function with example usage: set_usage_stats_enabled_via_env_var(enabled) without return types