import re


def _is_valid_port(port):
    """Use to judge the port whether is valid port value"""
    bool_value = True
    regex = "^([1-9]|[1-9]\\d{1,3}|[1-6][0-5][0-5][0-3][0-5])$"
    match_obj = re.match(regex, port)
    if match_obj is None:
        bool_value = False
    return bool_value