code: def display_colab(port, display):
      """Display Aim instance in a Colab output frame.
      It need go through the proxy
      """
      import IPython.display
  
      shell = """
          (async () => {{
              const url = new URL('{path}/', await google.colab.kernel.proxyPort({port}, {{'cache': true}}));
              const iframe = document.createElement('iframe');
              iframe.src = url;
              const a = document.createElement('a');
              a.href = url;
              a.innerHTML = 'Open in new browser tab';
              a.setAttribute('target', '_blank');
  
              iframe.setAttribute('width', '100%');
              iframe.setAttribute('height', '800');
              iframe.setAttribute('frameborder', 0);
              document.body.appendChild(iframe);
              document.body.appendChild(a);
          }})();
          """.format(
          path=_NOTEBOOK_PATH_POSTFIX, port=port
      )
  
      script = IPython.display.Javascript(shell)
  
      if display:
          display.update(script)
      else:
          IPython.display.display(script)
  
file_path: aim/aim/ext/notebook/notebook.py
imports: import shlex
  from aim.cli.configs import VERSION_NAME, UP_NAME
  import aim.cli.manager.manager
label_desc: Use image node_id 3 for calling a global function with example usage: display_colab(port, display) without return types