code: def test_interact_instancemethod(clear_display):
      class Foo(object):
          def show(self, x):
              print(x)
  
      f = Foo()
  
      with patch.object(interaction, "display", record_display):
          g = interact(f.show, x=(1, 10))
      assert len(displayed) == 1
      w = displayed[0].children[0]
      check_widget(
          w,
          cls=widgets.IntSlider,
          value=5,
      )
  
imports: from __future__ import print_function
  import os
  from collections import OrderedDict
  import pytest
  import ipywidgets
  from traitlets import TraitError
  from ipywidgets import interact, interact_manual, interactive, interaction, Output
  from ipython_genutils.py3compat import annotate
  from .utils import setup, teardown
label_desc: Use image node_id 25 for calling a global function with example usage: test_interact_instancemethod(clear_display) without return types