from typing import Callable


def getAction(fileName: str, actionName: str) -> Callable:
    """Load action from file inside shock folder

    Args:
        fileName (str): file that has the action.
        actionName (str): action that will be extracted from file.

    Returns:
        action: the call result.
    """
    modulefullpath = "shock."+fileName
    module = __import__(modulefullpath)
    action = getattr(module, fileName)
    return getattr(action, actionName)