def METHOD_NAME(self, state, timeout=-1, rerun=0, send_enter_after_changed_state=False,
               log_stacktrace_on_fail=True, keep_state=True):
    """
    Goes to state.
    :param state: name of state to go.
    :param timeout: Time in seconds when break transitions if still not success.
    :param rerun: How many times try to rerun command(s) when device is still not in requested state.
    :param send_enter_after_changed_state: Set True to send enter after enters proper state.
    :param log_stacktrace_on_fail: Set True to log exceptions if command to enter state failed.
    :param keep_state: if True and state is changed without goto_state then device tries to change state to state
    defined by goto_state.
    :return: None
    """