code: def test_validation():
      # Code version must be a string.
      with pytest.raises(TypeError):
          DeploymentVersion(123, DeploymentConfig(), {})
  
imports: import pytest
  import ray
  from ray.serve._private.config import DeploymentConfig
  from ray.serve._private.deployment_state import DeploymentVersion
label_desc: Use image node_id 1 for calling a global function with example usage: test_validation() without return types