def METHOD_NAME(ctx: bentoml.Context):
    ctx.state["data"] = "hello"
    if not TEST_DIR or not os.path.exists(TEST_DIR):
        return
    text_file = os.path.join(TEST_DIR, f"data-{get_uid()}.txt")
    with open(text_file, "w"):
        pass
    ctx.state["text_file"] = text_file