def validate_field_content(cls, field_content: Any, is_tensor_field: bool) -> Any:
        """
            field: the field name of the field content. we need this to passed to validate_dict
            is_tensor_field: if the field is a tensor field
            Returns
                field_content, if it is valid

            Raises:
                InvalidArgError if field_content is not acceptable
            """
        if type(field_content) in cls._SUPPORTED_FIELD_CONTENT_TYPES:
            if isinstance(field_content, list):
                cls._validate_list(field_content, is_tensor_field)
            return field_content
        else:
            raise errors.InvalidArgError(
                f"Field content `{field_content}` \n"
                f"of type `{type(field_content).__name__}` is not of valid content type! "
                f"Allowed content types: {[ty.__name__ for ty in cls._SUPPORTED_FIELD_CONTENT_TYPES]}"
            )

            field: the field name of the field content. we need this to passed to validate_dict
            is_tensor_field: if the field is a tensor field
            Returns
                field_content, if it is valid

            Raises:
                InvalidArgError if field_content is not acceptable
            
src/marqo/core/unstructured_vespa_index/unstructured_vespa_index.py