<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_diagnostic(self, name):
 """	Removes a diagnostic from the ``process.diagnostic`` dictionary and also delete the associated process attribute. :param str name: name of diagnostic quantity to be removed :Example: Remove diagnostic variable 'icelat' from energy balance model:: ['ASR', 'OLR', 'net_radiation', 'albedo', 'icelat'] ['ASR', 'OLR', 'net_radiation', 'albedo'] """

        #_ = self.diagnostics.pop(name)
        #delattr(type(self), name)
        try:
            delattr(self, name)
            self._diag_vars.remove(name)
        except:
            print('No diagnostic named {} was found.'.format(name))