code: def check_dimensions_match(
      dimension_1: int,
      dimension_2: int,
      dim_1_name: str,
      dim_2_name: str,
  ) -> None:
      if dimension_1 != dimension_2:
          raise ConfigurationError(
              f"{dim_1_name} must match {dim_2_name}, but got {dimension_1} "
              f"and {dimension_2} instead"
          )
  
file_path: allennlp/allennlp/common/checks.py
imports: import logging
  import re
  import subprocess
  from typing import Any, List, Tuple, Union
  import torch
  from torch import cuda
label_desc: Use image node_id 2 for calling a global function with example usage: check_dimensions_match(dimension_1, dimension_2, dim_1_name, dim_2_name) without return types