def METHOD_NAME(self, cmd: str, *, timeout: int = 30, codec: str = "utf-8", decodeerrors: str = "strict"):  # pylint: disable=line-too-long
    """
    If Uboot is in Command-Line mode: Run command cmd and return it's
    output.
    Arguments:
    cmd - Command to run
    """
    # TODO: use codec, decodeerrors
    # Check if Uboot is in command line mode
    if self._status != 1:
        return None
    marker = gen_marker()
    # Create multi-part command like we would do for a normal uboot.
    # but since this simple uboot does not have an echo-command we will
    # handle it's error message as an echo-output.
    # additionally we are not able to get the command's return code and
    # will always return 0.
    cmp_command = f"echo{marker}; {cmd}; echo{marker}"
    self.console.sendline(cmp_command)
    _, before, _, _ = self.console.expect(self.prompt, timeout=timeout)
    data = re_vt100.sub(
        '', before.decode('utf-8'), count=1000000
    ).replace("\r", "").split("\n")
    data = data[1:]
    data = data[data.index(f"Unknown command 'echo{marker}' - try 'help'") +1 :]
    data = data[:data.index(f"Unknown command 'echo{marker}' - try 'help'")]
    if len(data) >= 1:
        if data[0].startswith("Unknown command '"):
            return (data, [], 1)
    return (data, [], 0)