code: def get_run_type(dir_path):
      folder_type = classify_folder(dir_path)
      if folder_type == FolderType.SINGLE_FILE:
          folder_type = RunType.SINGLE_FOLDER_SINGLE_FILE
  
      elif folder_type == FolderType.MULTIPLE_FILES:
          folder_type = RunType.SINGLE_FOLDER_MULTIPLE_FILES
  
      elif folder_type == FolderType.MULTIPLE_FOLDERS:
          # folder contains sub dirs -> we assume we can classify the folder using only the first sub dir
          sub_dirs = [
              d for d in listdir(dir_path) if isdir(join(dir_path, d))
          ]
  
          # checking only the first folder in the root dir for its type, since we assume that all sub dirs will share the
          # same structure (i.e. if one is a result of multi-threaded run, so will all the other).
          folder_type = classify_folder(
              os.path.join(dir_path, sub_dirs[0])
          )
          if folder_type == FolderType.SINGLE_FILE:
              folder_type = RunType.MULTIPLE_FOLDERS_SINGLE_FILES
          elif folder_type == FolderType.MULTIPLE_FILES:
              folder_type = RunType.MULTIPLE_FOLDERS_MULTIPLE_FILES
  
      return folder_type
  
imports: import copy
  import datetime
  import os
  import sys
  import time
  from itertools import cycle
  from os import listdir
  from os.path import isfile, join, isdir
  from bokeh.layouts import row, column, Spacer, ToolbarBox
  from bokeh.models import ColumnDataSource, Range1d, LinearAxis, Legend, WheelZoomTool, CrosshairTool, ResetTool, SaveTool, Toolbar, PanTool, BoxZoomTool, Toggle
  from bokeh.models.callbacks import CustomJS
  from bokeh.models.widgets import RadioButtonGroup, MultiSelect, Button, Select, Slider, Div, CheckboxGroup
  from bokeh.plotting import figure
  from rl_coach.dashboard_components.globals import signals_files, x_axis_labels, x_axis_options, show_spinner, hide_spinner, dialog, FolderType, RunType, add_directory_csv_files, doc, display_boards, layouts, crcolor, crx, cry, color_resolution, crRGBs, rgb_to_hex, x_axis
  from rl_coach.dashboard_components.signals_files_group import SignalsFilesGroup
  from rl_coach.dashboard_components.signals_file import SignalsFile
label_desc: Use image node_id 13 for calling a global function with example usage: get_run_type(dir_path) and returns: folder_type