def autoselect(match_text=None, import_list=[], help_text=True):
    """Automatically select the first object that the 'match_text' is included
    in its name. If no object has this word no object will be automatically
    selected. If 'help_text' value is False no output help text for the founded
    tables will be returned in case there are more entries in the list with the
    matching text.

    Arguments:
        match_text :  The desired text selection (str).

        import_list :  List of the options (List).

        help_text :  Display or not all the tables if more then one (Boolean).

    Returns:
        The selected value that match the input

    """
    value = ''
    try:
        if import_list is None:
            value = None
        elif match_text in import_list:
            value = match_text
        else:
            match_list = [t for t in import_list if match_text in t]
            if len(match_list) == 0 or match_text == '':
                value = None
            else:
                value = match_list[0]
            # if there is more than one return all matching entries.
            if len(match_list) > 1 and help_text is True and match_text != '':
                print(f"{len(match_list)} values found with the word"
                      f"'{match_text}' in the list: {match_list}")
    except Exception as err:
        print(f"Could not auto select a value '{match_text}' for from",
              f"the list '{import_list[0]} ...': {err}")
        value = None
    return value