docs: def install_package(self, team, user, package, contents):
          """
          Creates a new package in the default package store
          and allocates a per-user directory if needed.
          """
          self.check_name(team, user, package)
          assert contents is not None
  
          self.create_dirs()
          path = self.package_path(team, user, package)
  
          # Delete any existing data.
          try:
              os.remove(path)
          except OSError:
              pass