def _convert_to_in_list_str(value_list: list, marqo_field_name: str, marqo_field_type: FieldType) -> str:
            """
            Change list into its string representation, replacing [] with ().
            This is different from `tuple()` because it does not add a comma for single element lists.

            IN only works for 2 field types: string and int.
            For string: Each element is enclosed in DOUBLE quotes.
            For int: Add int with no quotes. If wrong type, error out.
            Otherwise: error out.
            """

            in_list = '('

            STR_FIELD_TYPES = [FieldType.Text, FieldType.ArrayText, FieldType.CustomVector]
            INT_FIELD_TYPES = [FieldType.Int, FieldType.Long, FieldType.ArrayInt, FieldType.ArrayLong]
            for i in range(len(value_list)):
                # str type fields
                if marqo_field_type in STR_FIELD_TYPES:
                    in_list += f'"{self.escape(value_list[i])}"'
                # int type fields
                elif marqo_field_type in INT_FIELD_TYPES:
                    try:
                        test_int_val = int(value_list[i])
                        in_list += str(value_list[i])
                    except ValueError:
                        raise InvalidDataTypeError(
                            f"Attempting to use the IN filter operator on field: '{marqo_field_name}' of type: '{marqo_field_type}',"
                            f" but found list element '{value_list[i]}', which is not of type 'int'."
                        )
                else:
                    raise InvalidDataTypeError(
                        f"The IN filter operator is only supported for the following field types: "
                        f"{[t.value for t in STR_FIELD_TYPES + INT_FIELD_TYPES]}. However, '{marqo_field_name}' "
                        f"is of unsupported type: '{marqo_field_type}'."
                    )

                # Add comma if not the last element
                if i < len(value_list) - 1:
                    in_list += ', '

            in_list += ')'
            return in_list

            Change list into its string representation, replacing [] with ().
            This is different from `tuple()` because it does not add a comma for single element lists.

            IN only works for 2 field types: string and int.
            For string: Each element is enclosed in DOUBLE quotes.
            For int: Add int with no quotes. If wrong type, error out.
            Otherwise: error out.
            
src/marqo/core/structured_vespa_index/structured_vespa_index.py