async def METHOD_NAME(self, tenant_id, task_run_id):
    artifact_id = await api.artifacts.create_task_run_artifact(
        task_run_id=task_run_id,
        kind="link",
        data={"link": "http"},
    )
    assert artifact_id
    artifact = await models.TaskRunArtifact.where(id=artifact_id).first(
        {"task_run_id", "kind", "data", "tenant_id"}
    )
    task_run = await models.TaskRun.where(id=task_run_id).first({"tenant_id"})
    assert artifact.task_run_id == task_run_id
    assert artifact.tenant_id == task_run.tenant_id