def METHOD_NAME(title, target=sys.stdin, width=None, extra=""):
    title = title.upper()
    if width is None:  # auto width. In case of stdout, it's better to use stdin (b/c GdbOutputFile)
        _height, width = get_window_size(target=target if target != sys.stdout else sys.stdin)
    if title:
        title = "{}{}{}{}".format(
            config.banner_title_surrounding_left,
            C.banner_title(title),
            extra,
            config.banner_title_surrounding_right,
        )
    if "left" == title_position:
        METHOD_NAME = ljust_colored(title, width, config.banner_separator)
    elif "right" == title_position:
        METHOD_NAME = rjust_colored(title, width, config.banner_separator)
    else:
        METHOD_NAME = rjust_colored(title, (width + len(strip(title))) // 2, config.banner_separator)
        METHOD_NAME = ljust_colored(METHOD_NAME, width, config.banner_separator)
    return C.METHOD_NAME(METHOD_NAME)