def METHOD_NAME(path):
    """Check if path is source code path.
    Parameters
    ----------
    path : str
        A possible path
    Returns
    -------
    valid : bool
        Whether path is a possible source path
    """
    if os.path.exists(path):
        return True
    if path.find("\n") != -1:
        return False
    spath = path.rsplit(".", 1)
    return len(spath) == 2 and spath[1].strip() == spath[1]