code: def encode_max_apdu_length_accepted(arg):
      
      for i in range(5, -1, -1):
          if (arg >= _max_apdu_length_encoding[i]):
              return i
  
      raise ValueError("invalid max APDU length accepted: %r" % (arg,))
docs: Return the encoding of the highest encodable value less than the
      value of the arg.