code: def show_batch(
      x: LMTensorText,
      y,
      samples,
      ctxs=None,
      max_n=10,
      trunc_at=150,
      **kwargs,
  ):
      samples = L(
          (s[0].truncate(trunc_at), s[1].truncate(trunc_at))
          for s in samples
      )
      return show_batch[TensorText](
          x,
          None,
          samples,
          ctxs=ctxs,
          max_n=max_n,
          trunc_at=None,
          **kwargs,
      )
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  from .core import *
label_desc: Use image node_id 7 for calling a global function with example usage: show_batch(x, y, samples, ctxs, max_n, trunc_at) and returns: show_batch