class_docstr: Base class for project-specific Wikimedia datasets. See:
  
  * :class:`Wikipedia`
  * :class:`Wikinews`
code: def __init__(
      self,
      name,
      meta,
      project,
      data_dir,
      lang="en",
      version="current",
      namespace=0,
  ):
      super().__init__(name, meta=meta)
      self.lang = lang
      self.version = version
      self.project = project
      self.namespace = int(namespace)
      self._filestub = os.path.join(
          f"{self.lang}{self.project}",
          f"{self.version}",
          f"{self.lang}{self.project}-{self.version}-cirrussearch-content.json.gz",
      )
      self.data_dir = utils.to_path(data_dir).resolve()
      self._filepath = self.data_dir.joinpath(self._filestub)
  
imports: from __future__ import annotations
  import datetime
  import itertools
  import logging
  import os
  import re
  import urllib.parse
  from typing import Iterable, Optional
  import requests
  from cytoolz import itertoolz
  from ..None import constants
  from ..None import io
  from ..None import types, utils
  from .base import Dataset
label_desc: Use image node_id 1 to create a new Wikimedia object from inherited base classes: Dataset with example: obj = Wikimedia(name, meta, project, data_dir, lang, version, namespace)