def METHOD_NAME():
    """
    Tests check_for_link to ensure that sym links and hard links
    are not allowed. Creates a symlink and hard link of a temporary file and
    verifies that things fail with the appropriate error message
    """
    with tempfile.NamedTemporaryFile() as temp_file:
        # directory where the temp file is located
        parent_dir = os.path.dirname(temp_file.name)
        # create sym link to the temp file
        symlink_file = os.path.join(parent_dir, "temp_symlink_file")
        if os.path.exists(symlink_file):
            os.remove(symlink_file)
        os.symlink(temp_file.name, symlink_file)
        # create hard link to the temp file
        hardlink_file = os.path.join(parent_dir, "temp_hardlink_file")
        if os.path.exists(hardlink_file):
            os.remove(hardlink_file)
        os.link(temp_file.name, hardlink_file)
        try:
            # Test that hard link errors
            with pytest.raises(ArgumentTypeError) as e:
                check_for_link(hardlink_file)
            assert "cannot be a link" in str(e)
            # Test that sym link errors
            with pytest.raises(ArgumentTypeError) as e:
                check_for_link(symlink_file)
            assert "cannot be a link" in str(e)
        finally:
            if os.path.exists(symlink_file):
                os.remove(symlink_file)
            if os.path.exists(hardlink_file):
                os.remove(hardlink_file)