code: def extract_time_from_single_job(job):
      """Extract time info from a single job in a GitHub Actions workflow run"""
  
      job_info = {}
  
      start = job["started_at"]
      end = job["completed_at"]
  
      start_datetime = date_parser.parse(start)
      end_datetime = date_parser.parse(end)
  
      duration_in_min = round(
          (end_datetime - start_datetime).total_seconds() / 60.0
      )
  
      job_info["started_at"] = start
      job_info["completed_at"] = end
      job_info["duration"] = duration_in_min
  
      return job_info
  
imports: import argparse
  import math
  import dateutil.parser
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: extract_time_from_single_job(job) and returns: job_info