code: def test_user_config_nested():
      v1 = DeploymentVersion(
          "1",
          DeploymentConfig(user_config=[{"1": "2"}, {"1": "2"}]),
          {},
      )
      v2 = DeploymentVersion(
          "1",
          DeploymentConfig(user_config=[{"1": "2"}, {"1": "2"}]),
          {},
      )
      v3 = DeploymentVersion(
          "1",
          DeploymentConfig(user_config=[{"1": "2"}, {"1": "3"}]),
          {},
      )
  
      assert v1 == v2
      assert hash(v1) == hash(v2)
      assert v1 != v3
      assert hash(v1) != hash(v3)
  
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 9 for calling a global function with example usage: test_user_config_nested() without return types