code: def process_cl_flags(config) -> Dict[str, bool]:
      getopt = config.getoption
      no_extra_testing = getopt("--no-extra-testing")
  
      tmp_config = {
          "as_variable": (
              getopt("--skip-variable-testing"),
              getopt("--with-variable-testing"),
          ),
          "native_array": (
              getopt("--skip-native-array-testing"),
              getopt("--with-native-array-testing"),
          ),
          "with_out": (
              getopt("--skip-out-testing"),
              getopt("--with-out-testing"),
          ),
          "container": (
              getopt("--skip-nestable-testing"),
              getopt("--with-nestable-testing"),
          ),
          "instance_method": (
              getopt("--skip-instance-method-testing"),
              getopt("--with-instance-method-testing"),
          ),
          "test_gradients": (
              getopt("--skip-gradient-testing"),
              getopt("--with-gradient-testing"),
          ),
          "test_trace": (
              getopt("--skip-trace-testing"),
              getopt("--with-trace-testing"),
          ),
          "transpile": (
              False,
              getopt("--with-transpile"),
          ),
          "test_cython_wrapper": (
              getopt("--skip-cython-wrapper-testing"),
              getopt("--with-cython-wrapper-testing"),
          ),
      }
  
      # whether to skip gt testing or not
      # global SKIP_GROUND_TRUTH
      # SKIP_GROUND_TRUTH = not tmp_config["transpile"][1]
  
      # final mapping for hypothesis value generation
      for k, v in tmp_config.items():
          # when both flags are true
          if v[0] and v[1]:
              raise Exception(
                  f"--skip-{k}--testing and --with-{k}--testing flags cannot be used "
                  "together"
              )
          if v[1] and no_extra_testing:
              raise Exception(
                  f"--with-{k}--testing and --no-extra-testing flags cannot be used "
                  "together"
              )
          # skipping a test
          if v[0] or no_extra_testing:
              pf.build_flag(k, False)
          # extra testing
          if v[1]:
              pf.build_flag(k, True)
  
imports: import os
  import pytest
  from typing import Dict
  import sys
  import multiprocessing
  from packaging import version
  from .helpers.globals import mod_backend, mod_frontend
  import ivy_tests.test_ivy.helpers.test_parameter_flags
  from ivy import set_exception_trace_mode
  from ivy_tests.test_ivy.helpers import globals
  from ivy_tests.test_ivy.helpers.available_frameworks import available_frameworks
  from ivy_tests.test_ivy.helpers.multiprocessing import backend_proc, frontend_proc
  from ivy_tests.test_ivy.helpers.pipeline_helper import BackendHandler, BackendHandlerMode
label_desc: Use image node_id 6 for calling a global function with example usage: process_cl_flags(config) without return types