code: def main():
      from rl_coach.utils import get_open_port
  
      dashboard_path = os.path.realpath(__file__)
      port = get_open_port()
      command = "bokeh serve --show {path} --port {port}".format(
          path=dashboard_path, port=port
      )
  
      if args.allow_remote_connection:
          # when allowing remote connection, selecting an experiment or a file via the GUI buttons do not seem to work
          # well from remote. Instead, we only allow entering an experiment dir from command line.
          if not args.experiment_dir and not args.experiment_files:
              raise ValueError(
                  "The allow_remote_connection flag only works in conjunction with either the experiment_dir"
                  " or the experiment_files flag. "
              )
  
          # allow-websocket-origin = * allows connections from a remote machine.
          command += " --allow-websocket-origin=*"
  
      if args.experiment_dir or args.experiment_files:
          command += " --args"
          if args.experiment_dir:
              command += " --experiment_dir {}".format(
                  args.experiment_dir
              )
          if args.experiment_files:
              command += " --experiment_files {}".format(
                  args.experiment_files
              )
  
      os.system(command)
  
file_path: coach/rl_coach/dashboard.py
imports: import sys
  import os
  from rl_coach.dashboard_components.experiment_board import display_directory_group, display_files
  from rl_coach.dashboard_components.globals import doc
  import rl_coach.dashboard_components.boards
  from rl_coach.dashboard_components.landing_page import landing_page
  import argparse
  import glob
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types