code: def _parse_datetime(s):
      """Parse dates in the format returned by the Github API."""
      if s:
          return datetime.strptime(s, ISO8601)
      else:
          return datetime.fromtimestamp(0)
  
file_path: dipy/tools/github_stats.py
imports: import json
  import re
  import sys
  from datetime import datetime, timedelta
  from subprocess import check_output
  from urllib.request import urlopen
label_desc: Use image node_id 4 for calling a global function with example usage: _parse_datetime(s) and returns: datetime, datetime