code: def test_is_enabled_env_neg(
      dvc, config, env, result, monkeypatch, tmp_global_dir
  ):
      # reset DVC_TEST env var, which affects `is_enabled()`
      monkeypatch.delenv("DVC_TEST")
      monkeypatch.delenv("DVC_NO_ANALYTICS", raising=False)
  
      with dvc.config.edit() as conf:
          conf["core"] = {}
  
      assert analytics.is_enabled()
  
      if config is not None:
          with dvc.config.edit() as conf:
              conf["core"] = {"analytics": config}
  
      if env is not None:
          monkeypatch.setenv("DVC_NO_ANALYTICS", env)
  
      assert result == analytics.is_enabled()
  
file_path: dvc/tests/unit/test_analytics.py
imports: import json
  import platform
  import pytest
  from voluptuous import Any, Schema
  from dvc import analytics
  from dvc.cli import parse_args
label_desc: Use image node_id 6 for calling a global function with example usage: test_is_enabled_env_neg(dvc, config, env, result, monkeypatch, tmp_global_dir) without return types