def METHOD_NAME(self, cmd_name, cmd_params=None, check_state=True, for_state=None):
    """
    Returns instance of command connected with the device.
    :param cmd_name: name of commands, name of class (without package), for example "cd".
    :param cmd_params: dict with command parameters.
    :param check_state: if True then before execute of command the state of device will be check if the same
     as when command was created. If False the device state is not checked.
    :param for_state: if None then command object for current state is returned, otherwise object for for_state is
     returned.
    :return: Instance of command
    """