def METHOD_NAME(a_link, tfile):
    user = getpass.getuser()
    lperms = get_link_perms()
    # Function check_managed() ignores mode changes for files in the temp directory.
    # Trick it to not recognize a_link as such.
    a_link = "/" + a_link
    # follow_symlinks=False (default)
    ret, comments = filemod.check_managed(
        a_link, tfile, None, None, user, None, lperms, None, None, None, None, None
    )
    assert ret is True
    assert comments == "The file {} is in the correct state".format(a_link)
    ret, comments = filemod.check_managed(
        a_link, tfile, None, None, user, None, "0644", None, None, None, None, None
    )
    assert ret is None
    assert comments == "The following values are set to be changed:\nmode: 0644\n"
    # follow_symlinks=True
    ret, comments = filemod.check_managed(
        a_link,
        tfile,
        None,
        None,
        user,
        None,
        "0644",
        None,
        None,
        None,
        None,
        None,
        follow_symlinks=True,
    )
    assert ret is True
    assert comments == "The file {} is in the correct state".format(a_link)