execute macro in a package when the macro name is variable

Any ideas how to execute macro in a shared package (data_ops_shared_macros) in the project where the macro name is variable:

{% set macro_name = “data_ops_shared_macros.” ~ this.name ~ “_json” %}
{% set current_model_macro = context.get(macro_name) %}

I also tried:
{% set macro_name = this.name ~ “_json” %}
{% set macro_name = “macros.data_ops_shared_macros.” ~ this.name ~ “_json” %}
{% set macro_name = “data_ops_shared_macros.macro.” ~ this.name ~ “_json” %}, and some other random combinations with no luck.

The context returns “None” which means the object was not found in the graph. Works fine when I move the macro to the main project which is not ideal. It should be in shared macros package. Thank you!

Maybe adapter.dispatch?
https://docs.getdbt.com/reference/dbt-jinja-functions/dispatch

Note: @Abigail Green (CHG Healthcare) originally posted this reply in Slack. It might not have transferred perfectly.