code: def batches(lst, n):
      """Yield successive n-sized chunks from lst."""
      for i in range(0, len(lst), n):
          yield lst[i : i + n]
  
file_path: NeMo/tools/nmt_grpc_service/server.py
imports: import argparse
  import os
  from concurrent import futures
  import api.nmt_pb2
  import api.nmt_pb2_grpc
  import grpc
  import torch
  import nemo.collections.nlp
  from nemo.utils import logging
label_desc: Use image node_id 2 for calling a global function with example usage: batches(lst, n) without return types