code: def test_illegal_api_calls(ray_start_regular):
      # Verify that we cannot call put on an ObjectRef.
      x = ray.put(1)
      with pytest.raises(Exception):
          ray.put(x)
      # Verify that we cannot call get on a regular value.
      with pytest.raises(Exception):
          ray.get(3)
  
imports: import json
  import logging
  import os
  import sys
  import time
  import numpy
  import pytest
  import ray._private.profiling
  import ray.cluster_utils
  from ray._private.internal_api import memory_summary
  from ray._private.test_utils import client_test_enabled, wait_for_condition
  from ray.exceptions import ObjectFreedError
label_desc: Use image node_id 9 for calling a global function with example usage: test_illegal_api_calls(ray_start_regular) without return types