from typing import List
import inspect


def first_n_callers_in_stack(n: int) -> List[str]:
    """
    Get the names of the modules in the current stack call context
    """
    caller_stacks = [inspect.stack()[i] for i in range(1, n)]
    caller_modules = [inspect.getmodule(stack[0]) for stack in caller_stacks]
    caller_module_names = [
        module.__name__ for module in caller_modules if module  # filter nones
    ]
    return caller_module_names