code: def from_chars(cls, chars='', optimal=3):
          
          if not chars:
              chars = ''.join(ALNUM)
          sets = most_even_chunk(chars, optimal)
          return cls(sets)
docs: Construct a Pat object from the specified string
          and optimal position count.