code: def test_assert_raises():
      # rudimentary test of assert_raises shim prompted by suspicion in
      # https://github.com/datalad/datalad/issues/6846#issuecomment-1363878497
      def raise_ValueError():
          raise ValueError("exc ValueError")
  
      def raise_TypeError():
          raise TypeError("exc TypeError")
  
      # Test both forms of use
      with assert_raises(ValueError):
          raise_ValueError()
      assert_raises(ValueError, raise_ValueError)
  
      # can we specify multiple in a tuple?
      with assert_raises((ValueError, TypeError)):
          raise_ValueError()
      with assert_raises((ValueError, TypeError)):
          raise_TypeError()
  
      assert_raises((ValueError, TypeError), raise_TypeError)
      assert_raises((ValueError, TypeError), raise_ValueError)
  
imports: import base64
  import logging
  import os
  import platform
  import random
  import sys
  from glob import glob
  from os.path import basename, exists
  from os.path import join
  from unittest.mock import patch
  from urllib.parse import quote
  from urllib.request import Request, urlopen
  import pytest
  from _pytest.outcomes import Failed, Skipped
  from datalad import cfg
  from datalad.support import path
  from datalad.support.gitrepo import GitRepo
  from datalad.tests.utils_pytest import OBSCURE_FILENAMES, OBSCURE_PREFIX, assert_cwd_unchanged, assert_dict_equal, assert_false, assert_in, assert_not_in, assert_raises, assert_re_in, assert_str_equal, assert_true, eq_, get_most_obscure_supported_name, ignore_nose_capturing_stdout, known_failure_githubci_win, known_failure_windows, local_testrepo_flavors, nok_startswith, ok_, ok_broken_symlink, ok_file_has_content, ok_file_under_git, ok_generator, ok_good_symlink, ok_startswith, ok_symlink, on_windows, patch_config, probe_known_failure, rmtemp, run_under_dir, serve_path_via_http, skip_if, skip_if_no_module, skip_if_no_network, skip_if_on_windows, skip_ssh, skip_wo_symlink_capability, swallow_logs, with_tempfile, with_testsui, with_tree, without_http_proxy
  from datalad.utils import Path, chpwd, getpwd
label_desc: Use image node_id 38 for calling a global function with example usage: test_assert_raises() without return types