code: def test_raise_if_blocked(
      dataset: str, blocked: list[str], expectation: Any
  ) -> None:
      with expectation:
          raise_if_blocked(dataset=dataset, blocked_datasets=blocked)
  
file_path: datasets-server/libs/libcommon/tests/test_utils.py
imports: from contextlib import nullcontext
  from typing import Any
  import numpy
  import pandas
  import pytest
  from libcommon.exceptions import DatasetInBlockListError
  from libcommon.utils import inputs_to_string, is_image_url, orjson_dumps, raise_if_blocked
label_desc: Use image node_id 3 for calling a global function with example usage: test_raise_if_blocked(dataset, blocked, expectation) without return types