code: def check_variable(val, args_str: str):
      if val is None:
          logger.error("{} cannot be None".format(args_str))
  
      if not (0.0 < val < 1.0):
          logger.error(
              "The value of {} should be between 0 and 1. Got: {}".format(
                  args_str, val
              )
          )
  
file_path: ml-cvnets/cvnets/matcher_det/ssd_matcher.py
imports: import argparse
  from typing import Optional, Tuple, Union
  import numpy
  import torch
  from torch import Tensor
  from cvnets.matcher_det import MATCHER_REGISTRY, BaseMatcher
  from cvnets.misc.box_utils import center_form_to_corner_form, convert_boxes_to_locations, convert_locations_to_boxes, corner_form_to_center_form
  from cvnets.misc.third_party.ssd_utils import assign_priors
  from utils import logger
label_desc: Use image node_id 1 for calling a global function with example usage: check_variable(val, args_str) without return types