code: def test_single_param(monkeypatch, space):
      """Test computing for a single param"""
      mock_train_regressor(monkeypatch)
  
      partial_dependencies = partial_dependency(
          data, space, params=["x"], n_samples=10
      )
      assert list(partial_dependencies.keys()) == ["x"]
      assert len(partial_dependencies["x"][0]["x"]) == 10
      assert partial_dependencies["x"][1].shape == (10,)
      assert partial_dependencies["x"][2].shape == (10,)
  
imports: import copy
  import numpy
  import pandas
  import pytest
  from orion.analysis.partial_dependency_utils import make_grid, partial_dependency, partial_dependency_grid, reverse
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.utils import format_trials
  from orion.core.worker.transformer import build_required_space
label_desc: Use image node_id 12 for calling a global function with example usage: test_single_param(monkeypatch, space) without return types