<filename>spinta/backends/memory/commands/load.py
from typing import Dict, Any

from spinta import commands
from spinta.components import Context
from spinta.backends.memory.components import Memory


@commands.load.register(Context, Memory, dict)
def load(context: Context, backend: Memory, config: Dict[str, Any]):
    backend.data = {}

<filename>spinta/backends/memory/commands/load.py
from typing import Dict, Any

from spinta import commands
from spinta.components import Context
from spinta.backends.memory.components import Memory


@commands.load.register(Context, Memory, dict)
def load(context: Context, backend: Memory, config: Dict[str, Any]):
    backend.data = {}
