code: def parse_log(log_path: str, args) -> dict:
      config = parse_config_from_log(log_path)
      # Check to make sure config not empty
      if config:
          config = flatten(config)
          if args.parse_date_time:
              date_time = None
              try:
                  date_time = parse_date_time(
                      config[args.date_time_param],
                      args.date_time_pattern,
                      args.date_time_split_char,
                  )
              except BaseException:
                  pass
              if not date_time:
                  print("Unable to parse date/time")
                  date_time = [None, None]
              update_config_date_time(config, date_time)
      return config
  
file_path: vissl/extra_scripts/experiment_spreadsheet_from_logs.py
imports: import argparse
  import ast
  import collections
  import os
  import pathlib
  import re
  import typing
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: parse_log(log_path, args) and returns: config