is there a way to have a f-string in a function or method operate as if it were in the caller's context?
That sounds like a job for parameters.
this?
Output:
parameters (0.2.1) - Management of large, hierarchical parameter sets for modelling and simulation