code: def test_ray_resources_environment_variable(shutdown_only):
      os.environ[
          ray_constants.RESOURCES_ENVIRONMENT_VARIABLE
      ] = '{"custom1":1, "custom2":2, "CPU":3}'
      ray.init(resources={"custom1": 3, "custom3": 3})
  
      cluster_resources = ray.cluster_resources()
      print(cluster_resources)
      assert cluster_resources["custom1"] == 1
      assert cluster_resources["custom2"] == 2
      assert cluster_resources["custom3"] == 3
      assert cluster_resources["CPU"] == 3
  
imports: import glob
  import logging
  import multiprocessing
  import os
  import sys
  import tempfile
  import time
  from unittest import mock
  import numpy
  import psutil
  import pytest
  import ray
  import ray._private.gcs_utils
  import ray._private.ray_constants
  import ray._private.utils
  import ray.cluster_utils
  import ray.util.accelerators
  from ray._private.test_utils import wait_for_condition
  from ray.dashboard import k8s_utils
  from ray.runtime_env import RuntimeEnv
label_desc: Use image node_id 5 for calling a global function with example usage: test_ray_resources_environment_variable(shutdown_only) without return types