code: def widget(im, *args, **layout) -> Output:
      "Convert anything that can be `display`ed by `IPython` into a widget"
      o = Output(layout=merge(*args, layout))
      with o:
          display(im)
      return o
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  from .core import *
  from fastcore.parallel import *
  from ipywidgets import HBox, VBox, widgets, Button, Checkbox, Dropdown, Layout, Box, Output, Label, FileUpload
label_desc: Use image node_id 2 for calling a global function with example usage: widget(im) and returns: o