code: def _ParseDocstring(function):
    
    if not function.__doc__:
      return {}
  
    type_check_dict = {}
    for match in param_regexp.finditer(function.__doc__):
      param_str = match.group(1).strip()
      param_splitted = param_str.split(" ")
      if len(param_splitted) >= 2:
        type_str = " ".join(param_splitted[:-1])
        name = param_splitted[-1]
        type_check_dict[name] = type_str
  
    for match in returns_regexp.finditer(function.__doc__):
      type_check_dict["returns"] = match.group(1)
  
    for match in type_regexp.finditer(function.__doc__):
      name = match.group(1)
      type_str = match.group(2)
      type_check_dict[name] = type_str
    for match in rtype_regexp.finditer(function.__doc__):
      type_check_dict["returns"] = match.group(1)
    return type_check_dict
docs: Parses the functions docstring into a dictionary of type checks.