def METHOD_NAME(run_command):
    # NOTE: normalize=False so that we get more direct results
    @click.command()
    @click.option("--bar", type=TaskPath(base_dir="/foo/", normalize=False))
    def foo(bar):
        click.echo(repr(bar))
    # absolute paths don't join
    result = run_command(foo, ["--bar", "/baz.txt"])
    assert (
        "TaskPath(base_dir=/foo/,coerce_to_dir=False,normalize=False,"
        "path=/baz.txt,orig_path=/baz.txt)\n"
    ) == result.output
    result = run_command(foo, ["--bar", "/baz/"])
    assert (
        "TaskPath(base_dir=/foo/,coerce_to_dir=False,normalize=False,"
        "path=/baz/,orig_path=/baz/)\n"
    ) == result.output
    # empty paths give you the base path
    result = run_command(foo, ["--bar", ""])
    assert (
        "TaskPath(base_dir=/foo/,coerce_to_dir=False,normalize=False,"
        "path=/foo/,orig_path=)\n"
    ) == result.output
    # slash join any ordinary path
    result = run_command(foo, ["--bar", "baz.txt"])
    assert (
        "TaskPath(base_dir=/foo/,coerce_to_dir=False,normalize=False,"
        "path=/foo/baz.txt,orig_path=baz.txt)\n"
    ) == result.output
    result = run_command(foo, ["--bar", "baz/"])
    assert (
        "TaskPath(base_dir=/foo/,coerce_to_dir=False,normalize=False,"
        "path=/foo/baz/,orig_path=baz/)\n"
    ) == result.output