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