code: def log_and_overwrite(param_name: str, x, y) -> int:
      if x != y:
          logging.warning(
              f"Mismatch of {param_name} expected {y} got {x}"
          )
      return y
  
file_path: pytext/pytext/models/seq_models/utils.py
imports: import logging
  from typing import Dict, List, Optional
  import torch
  import torch.nn.functional
  from torch import nn, Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: log_and_overwrite(param_name, x, y) and returns: y