code: def SetDisplayFromWebTest():
      """Set up display from web test.
  
      Colab test sets up display using xvfb for front end web test suite. We just
      ensure that DISPLAY environment variable is properly set for colab kernel
      (backend) which can be used for open gym environment rendering.
      """
  
      res = WaitForFilePath("/tmp/.X11-unix", 60)
      assert res
  
      pattern = "/tmp/.X11-unix/X*"
      res = WaitForFilePath(pattern, 60)
      assert res
  
      # If we find "/tmp/.X11-unix/X1", then we will set DISPLAY to be ":1".
      display = ":" + res[0][len(pattern) - 1 :]
      os.environ["DISPLAY"] = display
      logging.info("Set DISPLAY=%s", display)
  
file_path: agents/docs/tutorials/colab_kernel_init.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import glob
  import logging
  import os
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: SetDisplayFromWebTest() without return types