code: def test_docker_shm_override(run_option_type):
      process_runner = MockProcessRunner()
      provider = MockProvider()
      provider.create_node({}, {}, 1)
      cluster_name = "cluster"
  
      docker_config = {
          "container_name": "container",
          "image": "rayproject/ray:latest",
          run_option_type: ["--shm-size=80g"],
      }
      args = {
          "log_prefix": "prefix",
          "node_id": "0",
          "provider": provider,
          "auth_config": auth_config,
          "cluster_name": cluster_name,
          "process_runner": process_runner,
          "use_internal_ip": False,
          "docker_config": docker_config,
      }
      cmd_runner = DockerCommandRunner(**args)
  
      process_runner.respond_to_call("json .Config.Env", 2 * ["[]"])
      cmd_runner.run_init(
          as_head=True, file_mounts={}, sync_run_yet=True
      )
  
      # Ensure the user-provided SHM size is used.
      process_runner.assert_has_call(
          "1.2.3.4", pattern="--shm-size=80g"
      )
  
      # Ensure that SHM auto detection is bypassed
      process_runner.assert_not_has_call(
          "1.2.3.4", pattern="/proc/meminfo"
      )
  
file_path: ray/python/ray/tests/test_command_runner.py
imports: import pytest
  from ray.tests.test_autoscaler import MockProvider, MockProcessRunner
  from ray.autoscaler.command_runner import CommandRunnerInterface
  from ray.autoscaler._private.command_runner import SSHCommandRunner, DockerCommandRunner, _with_environment_variables
  from ray.autoscaler.sdk import get_docker_host_mount_location
  from getpass import getuser
  import hashlib
label_desc: Use image node_id 9 for calling a global function with example usage: test_docker_shm_override(run_option_type) without return types