code: def add_bos_eos_2d(
      values: List[List[int]], bos: int, eos: int
  ) -> List[List[int]]:
      results = torch.jit.annotate(List[List[int]], [])
      for value in values:
          result = torch.jit.annotate(List[int], [])
          result.append(bos)
          result.extend(value)
          result.append(eos)
          results.append(result)
      return results
  
imports: from typing import List, NamedTuple, Optional, Tuple
  import torch
  from torch import Tensor
label_desc: Use image node_id 14 for calling a global function with example usage: add_bos_eos_2d(values, bos, eos) and returns: results