def METHOD_NAME(self):
    """Prepare the context used when evaluating python code
    :returns: dict -- evaluation context given to safe_eval
    """
    ctx = {
        "uid": self.env.uid,
        "user": self.env.user,
        "DotDict": DotDict,
    }
    ctx.update(self._time_utils())
    return ctx