code: def pick_master_slide(master_slides_path: Path) -> Path:
      
  
      if master_slides_path.is_file():
          return master_slides_path
  
      master_slides = [
          f.name for f in master_slides_path.iterdir()
          if f.suffix == '.pptx'
          if not f.name.startswith("archived")
      ]
  
      if master_slides:
          return Path(master_slides_path, random.choice(master_slides))
  
      raise ValueError(f"Unable to find any valid pptx template file in {master_slides_path}")
docs: Returns path to a master slide. If argument is a directory,
      returns a randomly chosen file in the directory and if argument
      is a file, returns the argument itself
  
      :return: path to chosen master slide