code: def create_module_file(txt, directory):
      
      name = nonpresent_module_filename()
      path = os.path.join(directory, name)
      with open(path, 'w') as fh:
          fh.write(txt)
      return path
docs: Create a file in the given directory with
      a valid module name populated with the given txt.
  
      Returns:
          A path to the file