def encode_kw11(to_encode):
    """
    The function to encode kwargs.
    :param: to_encode: kwargs to encode.
    :return: encoded kwargs: dict
    """
    encoded_kw = {}
    if not isinstance(to_encode, dict):
        return encoded_kw
    for k, v in to_encode.items():
        try:
            int(k)
        except ValueError:
            encoded_kw.update({k: v})
    return encoded_kw
