code: def test_show(unittest):
      from dtale.app import show
      import dtale.global_state as global_state
  
      test_data = pd.DataFrame([dict(a=1, b=2)])
      with ExitStack() as stack:
          stack.enter_context(
              mock.patch("dtale.app.DtaleFlask.run", mock.Mock())
          )
          stack.enter_context(
              mock.patch(
                  "dtale.app.find_free_port",
                  mock.Mock(return_value=9999),
              )
          )
          stack.enter_context(
              mock.patch(
                  "socket.gethostname",
                  mock.Mock(return_value="localhost"),
              )
          )
          stack.enter_context(
              mock.patch("dtale.app.logger", mock.Mock())
          )
          stack.enter_context(
              mock.patch(
                  "dtale.views.in_ipython_frontend",
                  mock.Mock(return_value=True),
              )
          )
  
          get_calls = {"ct": 0}
          getter = namedtuple("get", "ok")
  
          def mock_requests_get(url, verify=True):
              if url.endswith("/health"):
                  is_ok = get_calls["ct"] > 0
                  get_calls["ct"] += 1
                  return getter(is_ok)
              return getter(True)
  
          stack.enter_context(
              mock.patch("requests.get", mock_requests_get)
          )
          instance = show(data=test_data, subprocess=False, name="foo")
          assert instance.__repr__() == ""
          assert instance.__str__() == ""
          instance.adjust_cell_dimensions(height=600)
  
      # cleanup
      global_state.cleanup()
  
imports: from collections import namedtuple
  import mock
  import pandas
  import pytest
  from tests import ExitStack
label_desc: Use image node_id 1 for calling a global function with example usage: test_show(unittest) and returns: getter, getter