code: def test_Providers_process_credential():
      # If unknown type -- raises ValueError
      assert_raises(
          ValueError,
          Providers._process_credential,
          "cred",
          {"type": "_unknown_"},
      )
  
file_path: datalad/datalad/downloaders/tests/test_providers.py
imports: import logging
  import os.path
  from unittest.mock import patch
  from ...support.external_versions import external_versions
  from ...tests.utils_pytest import assert_equal, assert_false, assert_greater, assert_in, assert_raises, ok_exists, swallow_logs, with_tempfile, with_testsui, with_tree
  from ...utils import chpwd, create_tree
  from ..providers import HTTPDownloader, Provider, Providers
label_desc: Use image node_id 3 for calling a global function with example usage: test_Providers_process_credential() without return types