def METHOD_NAME(self, module: str, name: str) -> object:  # noqa: D102
    try:
        # We match purely on the type name, ignoring the name of the containing
        # module. This is to avoid potential confusion and false negatives
        # with types that could be imported through multiple paths.
        return _get_types_by_original_name()[name]
    except KeyError:
        # The type of the object that we're unpickling doesn't appear to be an
        # Opentrons-defined type. Is it something else that we know about?
        if module == "" and name in {"int", "str"}:
            known_type = True
        elif module == "datetime":
            # `datetime.datetime`s and their attributes, like `datetime.timezone`.
            known_type = True
        elif module == "numpy" or module.startswith("numpy."):
            # `numpy.dtype` and `numpy.core.multiarray.scalar` (and possibly others)
            # are present.
            known_type = True
        else:
            known_type = False
        if not known_type:
            _log.warning(
                f'Unpickling unknown type "{name}" from module "{module}".'
                f" This may cause problems with reading records created by"
                f" older versions of this robot software."
                f" This should be reported to Opentrons and investigated."
            )
        return super().METHOD_NAME(module, name)