code: def show_results(
      x: TensorText,
      y,
      samples,
      outs,
      ctxs=None,
      max_n=10,
      trunc_at=150,
      **kwargs,
  ):
      if ctxs is None:
          ctxs = get_empty_df(min(len(samples), max_n))
      samples = L((s[0].truncate(trunc_at), *s[1:]) for s in samples)
      ctxs = show_results[object](
          x, y, samples, outs, ctxs=ctxs, max_n=max_n, **kwargs
      )
      display_df(pd.DataFrame(ctxs))
      return ctxs
  
imports: from __future__ import annotations
  from ..basics import *
  from .core import *
  from .data import *
  from .models.core import *
  from .models.awdlstm import *
  from ..callback.rnn import *
  from ..callback.progress import *
  from .models.core import _model_meta
label_desc: Use image node_id 12 for calling a global function with example usage: show_results(x, y, samples, outs, ctxs, max_n, trunc_at) and returns: ctxs