code: def parse_files(type_files):
      type2files = {}
      for item in type_files.split(","):
          t, file_or_dir = item.split(":")
          type2files[t] = file_or_dir
      return type2files
  
imports: import sys
  import datetime
  import os
  import yaml
  import random
  import shutil
  import six
  import warnings
  import glob
  from collections import defaultdict
  from pgl.utils.logger import log
label_desc: Use image node_id 5 for calling a global function with example usage: parse_files(type_files) and returns: type2files