code: def rpc_methods_registration():
          
  
          # In previous version, django-modern-rpc used the django cache system to store methods registry.
          # It is useless now, so clean the cache from old data
          clean_old_cache_content()
          # For security (and unit tests), make sure the registry is empty before registering rpc methods
          registry.reset()
  
          if not settings.MODERNRPC_METHODS_MODULES:
              # settings.MODERNRPC_METHODS_MODULES is undefined or empty, but we already notified user
              # with check_required_settings_defined() function. See http://docs.djangoproject.com/en/1.10/topics/checks/
              return
  
          # Lookup content of MODERNRPC_METHODS_MODULES, and add the module containing system methods
          for module_name in settings.MODERNRPC_METHODS_MODULES + ['modernrpc.system_methods']:
  
              try:
                  # Import the module in current scope
                  rpc_module = import_module(module_name)
  
              except ImportError:
                  msg = 'Unable to load module "{}" declared in settings.MODERNRPC_METHODS_MODULES. Please ensure ' \
                        'it is available and doesn\'t contains any error'.format(module_name)
                  warnings.warn(msg, category=Warning)
                  continue
  
              # Lookup all global functions in module
              for _, func in inspect.getmembers(rpc_module, inspect.isfunction):
                  # And register only functions with attribute 'modernrpc_enabled' defined to True
                  if getattr(func, 'modernrpc_enabled', False):
                      registry.register_method(func)
  
          logger.info('django-modern-rpc initialized: {} RPC methods registered'.format(registry.total_count()))
docs: Look into each module listed in settings.MODERNRPC_METHODS_MODULES, import each module and register
          functions annotated with @rpc_method decorator in the registry