def METHOD_NAME(use_time_smearing):
    sourcedb = "timesmearing.sourcedb"
    # Create a point-source model with a declination offset of 2 degrees.
    # The phase center of tNDPPP-generic.MS is 1h37m41.299, +033d09m35.132.
    dec_offset = 2  # Declination offset in degrees
    with open("timesmearing.skymodel", "w") as f:
        f.write(
            "FORMAT = Name, Type, Ra, Dec, I, MajorAxis, MinorAxis, PositionAngle, ReferenceFrequency='134e6', SpectralIndex='[0.0]'\n"
        )
        f.write(
            f"center, POINT, 01:37:41.299, +{33 + dec_offset}.09.35.132, 10, , , , ,\n"
        )
    shutil.rmtree(sourcedb, ignore_errors=True)
    check_call(
        [tcf.MAKESOURCEDBEXE, "in=timesmearing.skymodel", f"out={sourcedb}"]
    )
    check_call(
        [
            tcf.DP3EXE,
            f"msin={MSIN}",
            "steps=[average,predict]",
            "average.timestep=3",
            f"predict.sourcedb={sourcedb}",
            f"msout=ts-{'on' if use_time_smearing else 'off'}.MS",
            "predict.correcttimesmearing=10" if use_time_smearing else "",
        ]
    )
    if not use_time_smearing:
        # Without time smearing, XX,XY,YX,YY should always be 10,0,0,10
        taql_command = (
            "select from ts-off.MS "
            "where all(near(abs(DATA[,0]),10,1e-6))"
            "  and all(near(abs(DATA[,1]), 0,1e-6))"
            "  and all(near(abs(DATA[,2]), 0,1e-6))"
            "  and all(near(abs(DATA[,3]),10,1e-6))"
        )
        assert_taql(taql_command, 56)
    else:
        # With time smearing, XX,XY,YX,YY  should be close to (9.34, 0, 0, 9.34)
        # for all channels, when using the longest baseline (ant1=3, ant2=5).
        taql_command = (
            "select from ts-on.MS where ANTENNA1==3 and ANTENNA2==5"
            " and all(near(abs(DATA[,0]),9.34,5e-4))"
            " and all(near(abs(DATA[,1]),   0,1e-6))"
            " and all(near(abs(DATA[,2]),   0,1e-6))"
            " and all(near(abs(DATA[,3]),9.34,5e-4))"
        )
        assert_taql(taql_command, 2)