I would just have `extra_headers` as an explicit kwarg in the function definition