def upload_as_child(drive, filename, folder_id):
    """
    Upload a file to a parent folder

    Args:
        drive (GoogleDrive object): Access to Google Drive
        filename (str): Name of file to be uploaded
        folder_id (str): Parent folder drive ID

    Returns:
        GoogleDriveFile: Uploaded file
    """
    image_file = drive.CreateFile({'parents': [{'id': folder_id}]})
    image_file.SetContentFile(filename)
    image_file.Upload()
    return image_file