def METHOD_NAME(projectId):
    with pg_client.PostgresClient() as conn:
        conn.execute(
            conn.mogrify("SELECT tenant_id FROM projects WHERE project_id=%(projectId)s", {'projectId': projectId})
        )
        res = conn.fetchone()
    return res['tenant_id']