code: def check_dimensions_match(
      dimension_1, dimension_2, dim_1_name, dim_2_name
  ):
      if dimension_1 != dimension_2:
          raise ConfigurationError(
              "{dim_1_name} must match {dim_2_name}, but got {dimension_1} "
              "and {dimension_2} instead"
          )
  
file_path: magnitude/pymagnitude/third_party/allennlp/common/checks.py
imports: from __future__ import absolute_import
  import logging
  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