input: 
  def list_directory_contents(path: str) -> list:
      """Lists the contents of a given directory and returns them as a list.
      
      >>> list_directory_contents('/home/user/documents')
      ['file1.txt', 'file2.txt', 'folder']
      >>> list_directory_contents('/usr/local')
      ['bin', 'lib', 'share']
      """
      import os
      return os.listdir(path)
  
output:     import os
      return os.listdir(path)