code: def iter_dataset_instances(
      regex_name_filter: Union[None, str, Pattern] = None,
      *,
      max_triples: Optional[int] = None,
      min_triples: Optional[int] = None,
      use_tqdm: bool = True,
  ) -> Iterable[Tuple[str, Dataset]]:
      """Iterate over dataset instances with given constraints.
  
      :param regex_name_filter: An optional regular expression string or pre-compiled regular expression
      :param max_triples: An optional maximum number of triples for the dataset
      :param min_triples: An optional minimum number of triples for the dataset
      :param use_tqdm: Should a progress bar be shown?
      :yields: Pairs of dataset names and dataset instances
      """
      for name, cls in iter_dataset_classes(
          regex_name_filter=regex_name_filter,
          max_triples=max_triples,
          min_triples=min_triples,
          use_tqdm=use_tqdm,
      ):
          instance = get_dataset(dataset=cls)
          yield name, instance
  
file_path: pykeen/src/pykeen/datasets/utils.py
imports: import base64
  import hashlib
  import logging
  import pathlib
  import re
  from typing import Any, Collection, Iterable, Mapping, Optional, Pattern, Tuple, Type, Union
  import click
  from tqdm import tqdm
  from .base import Dataset, EagerDataset, PathDataset
  from ..constants import PYKEEN_DATASETS
  from ..triples import CoreTriplesFactory
label_desc: Use image node_id 2 for calling a global function with example usage: iter_dataset_instances(regex_name_filter) without return types