def METHOD_NAME(tmp_plugin: DynamicPlugin):
    tmp2 = tmp_plugin.spawn(name='tif_reader', register=True)
    @tmp2.contribute.reader(filename_patterns=['*.tif'])
    def _(path):
        ...
    return tmp2