def METHOD_NAME(self, d: dict) -> None:
    """Write the specified dictionary to the this serializer's file.
    Args:
        d (dict): The dict to write on file.
    """
    logger.info('Writing data for "%s" into "%s"',
                self.name, self.file_name)
    with open(self.file_name, 'w') as f:
        # the def_inst method, when called,
        # returns the right type of object anyway
        json.dump(d, f, cls=cast(Type[json.JSONEncoder],
                                 CustomDelegatingEncoder.def_inst))