def METHOD_NAME(err_str: str, once: bool = False) -> None:
    """Print info about an error along with pertinent context state.
    Category: **General Utility Functions**
    Prints all positional arguments provided along with various info about the
    current context.
    Pass the keyword 'once' as True if you want the call to only happen
    one time from an exact calling location.
    """
    import traceback
    try:
        # If we're only printing once and already have, bail.
        if once:
            if not _babase.do_once():
                return
        print('ERROR:', err_str)
        _babase.print_context()
        # Basically the output of traceback.print_stack()
        stackstr = ''.join(traceback.format_stack())
        print(stackstr, end='')
    except Exception:
        print('ERROR: exception in babase.print_error():')
        traceback.print_exc()