def METHOD_NAME(args: Any, kwargs: dict) -> Context:
    arg_names = decorated_function.__code__.co_varnames[
        : decorated_function.__code__.co_argcount
    ]
    search_args = dict(zip(arg_names, args))
    search_args.update(kwargs)
    key_parts: Deque[str] = deque()
    for arg in target_args:
        sub_args = arg.split(".")
        main_arg = sub_args[0]
        if main_arg not in search_args:
            raise ValueError(
                f"Expected '{main_arg}' in '{decorated_function.__name__}'"
                f" arguments. Got '{search_args}'"
            )
        context_key = search_args[main_arg]
        for attribute in sub_args[1:]:
            potential_key = getattr(context_key, attribute)
            if not potential_key:
                raise ValueError(
                    f"Expected '{attribute}' attribute in '{context_key.__name__}' arguments."
                )
            context_key = potential_key
        key_parts.append(f"{decorated_function.__name__}_{context_key}")
    key = ":".join(map(str, key_parts))
    if key not in _sequential_jobs_contexts:
        _sequential_jobs_contexts[key] = Context(
            in_queue=asyncio.Queue(),
            out_queue=asyncio.Queue(),
            initialized=False,
        )
    return _sequential_jobs_contexts[key]