code: def test_accept_dict():
      """Tests dictionary parameter is supported"""
      data = {
          "id": ["a", "b", "c", "d"],
          "objective": [0.1, 0.2, 0.3, 0.5],
      }
  
      result = regret(data)
  
      assert type(result) is pd.DataFrame
  
file_path: orion/tests/unittests/analysis/test_regret.py
imports: import pandas
  import pytest
  from orion.analysis import regret
label_desc: Use image node_id 1 for calling a global function with example usage: test_accept_dict() without return types