def arbitrary_string(size=4, base_text=None):
 if (not base_text):
  base_text = 'test'
 return ''.join(itertools.islice(itertools.cycle(base_text), size))

def arbitrary_string ( size = 4 , base_text = None ) : if ( not base_text ) : base_text = 'test' return '' . join ( itertools . islice ( itertools . cycle ( base_text ) , size ) )
return size characters from base_text this generates a string with an arbitrary number of characters .