def fetch_method(obj, method):
    """
    fetch object attributes by name
    Args:
        obj: class object
        method: name of the method
    Returns:
        function
    """
    try:
        return getattr(obj, method)
    except AttributeError:
        raise NotImplementedError(f"{obj.__class__} has not implemented {method}")