code: def _get_ray_cr_no_cpu_error() -> dict:
      """Incorrectly formatted Ray CR without num-cpus rayStartParam and without resource
      limits. Autoscaler should raise an error when reading this.
      """
      cr = get_basic_ray_cr()
      # Verify that the num-cpus rayStartParam is not present for the worker type.
      assert (
          "num-cpus"
          not in cr["spec"]["workerGroupSpecs"][0]["rayStartParams"]
      )
      del cr["spec"]["workerGroupSpecs"][0]["template"]["spec"][
          "containers"
      ][0]["resources"]["limits"]["cpu"]
      return cr
  
imports: import copy
  from pathlib import Path
  import requests
  from typing import Any, Dict, Optional
  from unittest import mock
  import platform
  import pytest
  import yaml
  from ray.autoscaler._private.kuberay.autoscaling_config import _derive_autoscaling_config_from_ray_cr, AutoscalingConfigProducer, _round_up_k8s_quantity
label_desc: Use image node_id 3 for calling a global function with example usage: _get_ray_cr_no_cpu_error() and returns: cr