def METHOD_NAME(name: str, states: Dict[str, bool]) -> bool:
    '''
    Given a set of state configs, and a name, work out if it should be run.
    >>> should_run_section('root.stage', {'root.stage': True})
    True
    >>> should_run_section('root.stage', {'root': True})
    True
    >>> should_run_section('root.stage', {'': True})
    True
    >>> should_run_section('root.stage', {})
    False
    >>> should_run_section('root.stage', {'root': True, 'root.stage': True})
    True
    >>> should_run_section('root.stage', {'root': False, 'root.stage': True})
    True
    >>> should_run_section('root.stage2', {'root.stage': True})
    False
    >>> should_run_section('root.stage2', {'root': True})
    True
    >>> should_run_section('root.stage2', {'': True})
    True
    >>> should_run_section('root.stage2', {})
    False
    >>> should_run_section('root.stage2', {'root': True, 'root.stage': True})
    True
    >>> should_run_section('root.stage2', {'root': False, 'root.stage': True})
    False
    '''
    for parent in _section_parents(name, include_self=True):
        state = states.get(parent, None)
        if state is not None:
            return state
    return False