code: def raise_if_blocked(
      dataset: str,
      blocked_datasets: list[str],
  ) -> None:
      """
      Raise an error if the dataset is in the list of blocked datasets
  
      Args:
          dataset (`str`):
              A namespace (user or an organization) and a repo name separated
              by a `/`.
          blocked_datasets (`list[str]`):
              The list of blocked datasets. If empty, no dataset is blocked.
              Unix shell-style wildcards are supported in the dataset name, e.g. "open-llm-leaderboard/*"
              to block all the datasets in the `open-llm-leaderboard` namespace. They are not allowed in
              the namespace name.
  
      Returns:
          `None`
      Raises the following errors:
          - [`libcommon.exceptions.DatasetInBlockListError`]
            If the dataset is in the list of blocked datasets.
      """
      for blocked_dataset in blocked_datasets:
          parts = blocked_dataset.split("/")
          if len(parts) > 2 or not blocked_dataset:
              raise ValueError(
                  "The dataset name is not valid. It should be a namespace (user or an organization) and a repo name"
                  " separated by a `/`, or a simple repo name for canonical datasets."
              )
          if "*" in parts[0]:
              raise ValueError(
                  "The namespace name, or the canonical dataset name, cannot contain a wildcard."
              )
          if fnmatch(dataset, blocked_dataset):
              raise DatasetInBlockListError(
                  "This dataset has been disabled for now. Please open an issue in"
                  " https://github.com/huggingface/datasets-server if you want this dataset to be supported."
              )
  
imports: import base64
  import enum
  import mimetypes
  from collections.abc import Mapping
  from datetime import datetime, timedelta, timezone
  from fnmatch import fnmatch
  from http import HTTPStatus
  from typing import Any, Optional, TypedDict
  import orjson
  import pandas
  from libcommon.exceptions import DatasetInBlockListError
label_desc: Use image node_id 6 for calling a global function with example usage: raise_if_blocked(dataset, blocked_datasets) without return types