code: def _get_or_create_vswitch(config):
      cli = _client(config)
      vswitches = cli.describe_v_switches(
          vpc_id=config["provider"]["vpc_id"]
      )
      if vswitches is not None and len(vswitches) > 0:
          config["provider"]["v_switch_id"] = vswitches[0].get(
              "VSwitchId"
          )
          return
  
      v_switch_id = cli.create_v_switch(
          vpc_id=config["provider"]["vpc_id"],
          zone_id=config["provider"]["zone_id"],
          cidr_block=config["provider"]["cidr_block"],
      )
  
      if v_switch_id is not None:
          config["provider"]["v_switch_id"] = v_switch_id
  
file_path: ray/python/ray/autoscaler/_private/aliyun/config.py
imports: import logging
  import os
  import stat
  from ray.autoscaler._private.aliyun.utils import AcsClient
label_desc: Use image node_id 5 for calling a global function with example usage: _get_or_create_vswitch(config) without return types