def METHOD_NAME(self, command, response):
    output = response.decode("utf-8").splitlines()
    if command in output[0]:
        output.pop(0)
    output.pop()
    output = [element.lstrip() + '\n' for element in output]
    response = ''.join(output)
    response = response.strip()
    self.log.info(''.join(response))
    return ''.join(response)