def METHOD_NAME(path: str) -> None:
    df = pd.DataFrame({"id": [1, 2, 3], "val": ["foo", "boo", "bar"]})
    wr.s3.to_json(df=df, path=f"{path}.json", orient="records", lines=True)
    df.id = df.id.astype(pd.ArrowDtype(pa.int64()))
    df.val = df.val.astype(pd.ArrowDtype(pa.string()))
    df2 = wr.s3.read_json(path=path, dtype_backend="pyarrow", orient="records", lines=True)
    assert_pandas_equals(df, df2)