<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_consumer_process(self, consumer, name):
 """Remove all details for the specified consumer and process name. :param str consumer: The consumer name :param str name: The process name """

        my_pid = os.getpid()
        if name in self.consumers[consumer].processes.keys():
            child = self.consumers[consumer].processes[name]
            try:
                alive = child.is_alive()
            except AssertionError:
                LOGGER.debug('Tried to test non-child process (%r to %r)',
                             os.getpid(), child.pid)
            else:
                if child.pid == my_pid:
                    LOGGER.debug('Child has my pid? %r, %r', my_pid, child.pid)
                elif alive:
                    try:
                        child.terminate()
                    except OSError:
                        pass
            try:
                del self.consumers[consumer].processes[name]
            except KeyError:
                pass