input: from typing import List
  
  
  def random_string(length: int) -> str:
      """ Generates a random string of specified length. The string contains only lowercase letters.
      >>> random_string(6)
      'abcdef'
      >>> random_string(6)
      'xyzpqr'
      """
      
      import random
      import string
      letters = string.ascii_lowercase
      return ''.join(random.choice(letters) for i in range(length))
output:     import random
      import string
      letters = string.ascii_lowercase
      return ''.join(random.choice(letters) for i in range(length))