docs: def create_package_node(self, team, user, package, dry_run=False):
          """
          Creates a new package and initializes its contents. See `install_package`.
          """
          contents = RootNode(dict())
          if dry_run:
              return contents
  
          self.check_name(team, user, package)
          assert contents is not None
          self.create_dirs()
  
          # Delete any existing data.
          path = self.package_path(team, user, package)
          try:
              os.remove(path)
          except OSError:
              pass
  
          return contents