code: def _resolve_kwargs(
      kwargs: Optional[Mapping[str, Any]],
      default_kwargs: Mapping[str, Any],
  ) -> Mapping[str, Any]:
      kwargs = dict(kwargs or {})
      for k, v in default_kwargs.items():
          kwargs.setdefault(k, v)
      return kwargs
  
file_path: pykeen/src/pykeen/models/unimodal/pair_re.py
imports: from typing import Any, ClassVar, Mapping, Optional, Type
  from torch.nn import functional
  from torch.nn.init import uniform_
  from ..nbase import ERModel
  from ...constants import DEFAULT_EMBEDDING_HPO_EMBEDDING_DIM_RANGE
  from ...losses import Loss, NSSALoss
  from ...nn.modules import PairREInteraction
  from ...typing import Hint, Initializer, Normalizer
label_desc: Use image node_id 1 for calling a global function with example usage: _resolve_kwargs(kwargs, default_kwargs) and returns: kwargs