def deprecation_handler(kwargs):
    # After reconsidering, let's leave `infer_gene_extent` for another release.
    # But when it's time to deprecate it, use this code:
    if 0:
        if 'infer_gene_extent' in kwargs:
            raise ValueError(
                "'infer_gene_extent' is deprecated as of version 0.8.4 in "
                "favor of more granular control over inferring genes and/or "
                "transcripts.  The previous default was "
                "'infer_gene_extent=True`, which corresponds to the new "
                "defaults "
                "'disable_infer_genes=False' and "
                "'disable_infer_transcripts=False'. Please see the docstring "
                "for gffutils.create_db for details.")
    if len(kwargs) > 0:
        raise TypeError("unhandled kwarg in %s" % kwargs)
As things change from version to version, deal with them here.
dataset/ETHPy150Open daler/gffutils/gffutils/create.py/deprecation_handler