code: def _digest_kwargs(
      dataset_kwargs: Mapping[str, Any],
      ignore: Collection[str] = tuple(),
  ) -> str:
      digester = hashlib.sha256()
      for key in sorted(dataset_kwargs.keys()):
          if key in ignore:
              continue
          digester.update(key.encode(encoding="utf8"))
          digester.update(
              str(dataset_kwargs[key]).encode(encoding="utf8")
          )
      return base64.urlsafe_b64encode(digester.digest()).decode("utf8")[
          :32
      ]
  
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 4 for calling a global function with example usage: _digest_kwargs(dataset_kwargs, ignore) and returns: base64