def METHOD_NAME(self, param_type=None):
    # Helper function to get all user or session parameters - or the entire dictionary if not specified.
    if param_type is not None:
        return self[param_type]
    else:
        return self