code: def _display_colab(
      port, height, open_in_new_tab, ui_params: RenderConfig
  ):
      """Display the LIT UI in colab.
  
      Args:
        port: The port the LIT server is running on.
        height: The height of the LIT UI in pixels.
        open_in_new_tab: Whether to show the UI in a new tab instead of in the
          output cell.
        ui_params: RenderConfig of options for the LIT UI.
      """
  
      params = ui_params.get_query_str()
      path = f"/{params}"
  
      if open_in_new_tab:
          output.serve_kernel_port_as_window(port, path=path)
      else:
          output.serve_kernel_port_as_iframe(
              port, height=f"{height}", path=path
          )
  
imports: from collections.abc import Sequence
  import html
  import json
  import os
  import pathlib
  import random
  from typing import cast, Optional
  import urllib.parse
  import attr
  from IPython import display
  from lit_nlp import dev_server
  from lit_nlp import server_config
  from lit_nlp.api import layout
  from lit_nlp.lib import wsgi_serving
label_desc: Use image node_id 1 for calling a global function with example usage: _display_colab(port, height, open_in_new_tab, ui_params) without return types