<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def execute(self, eopatch, data):
 """Returns the EOPatch with added features. :param eopatch: input EOPatch :type eopatch: EOPatch :param data: data to be added to the feature :type data: object :return: input EOPatch with the specified feature :rtype: EOPatch """

        if self.feature_name is None:
            eopatch[self.feature_type] = data
        else:
            eopatch[self.feature_type][self.feature_name] = data

        return eopatch