code: def gen_class(name, decoder, priority, ns):
      ns["_get_func"] = id_lambda(decoder)
      ns["decode"] = lambda self, ctext: _dispatch(
          self, ctext, self._get_func()
      )
      ns["getParams"] = id_lambda(None)
      ns["getTarget"] = id_lambda(name)
      ns["priority"] = id_lambda(priority)
      ns["__init__"] = lambda self, config: super(
          type(self), self
      ).__init__(config)
  
file_path: Ciphey/ciphey/basemods/Decoders/bases.py
imports: import base64
  import types
  from typing import Any, Callable, Optional
  import logging
  from rich.logging import RichHandler
  import re
  from ciphey.common import id_lambda
  from ciphey.iface import Decoder, registry
label_desc: Use image node_id 2 for calling a global function with example usage: gen_class(name, decoder, priority, ns) without return types