code: def test_setup_database_bad():
      """Test how setup fails when configuring with non-existent backends"""
  
      with pytest.raises(NotImplementedError) as exc:
          setup_database({"type": "idontexist"})
  
      assert exc.match("idontexist")
  
file_path: orion/tests/unittests/storage/test_legacy.py
imports: import copy
  import logging
  import os
  import pytest
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.worker.trial import Trial
  from orion.storage.base import FailedUpdate
  from orion.storage.legacy import setup_database
  from orion.testing import OrionState
label_desc: Use image node_id 2 for calling a global function with example usage: test_setup_database_bad() without return types