code: def verify_encoder_out(
      encoder_out: Dict[str, Tensor], keys: List[str]
  ):
      for key in keys:
          assert (
              key in encoder_out
          ), f"Needed {key} to be in {encoder_out.keys()}"
  
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 6 for calling a global function with example usage: verify_encoder_out(encoder_out, keys) without return types