code: def test_accept_empty(space):
      """Tests an empty dataframe is returned if you give an empty dataframe"""
      empty_frame = pd.DataFrame()
      results = partial_dependency(
          empty_frame, space, n_grid_points=3, n_samples=5
      )
  
      assert results == {}
  
      empty_frame = pd.DataFrame(columns=["x", "y", "z", "objective"])
      results = partial_dependency(
          empty_frame, space, n_grid_points=3, n_samples=5
      )
  
      assert results == {}
  
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 10 for calling a global function with example usage: test_accept_empty(space) without return types