code: def fn_with_diet_vars(params):
    
    params = copy.copy(params)
  
    def dec(fn):
  
      def wrapped(*args):
        return _fn_with_diet_vars(fn, args, params)
  
      return wrapped
  
    return dec
docs: Decorator for graph-building function to use diet variables.