def METHOD_NAME(self):
    METHOD_NAME = [dict(name=key, value=value)
            for key, value in self.__envs.items()]
    # Add the name of the workflow to task env
    METHOD_NAME.append({'name': WORKFLOW_NAME_VARIABLE_NAME, 'valueFrom': {
        'fieldRef': {'fieldPath': 'metadata.name'}}})
    return METHOD_NAME