class_docstr: This handler handles connection and execution of the Weaviate statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Weaviate","statements","."]
code: def _get_weaviate_value_type(value) -> str:
      # https://github.com/weaviate/weaviate-python-client/blob/c760b1d59b2a222e770d53cc257b1bf993a0a592/weaviate/gql/filter.py#L18
      if isinstance(value, list):
          value_list_types = {
              str: "valueTextList",
              int: "valueIntList",
              float: "valueIntList",
              bool: "valueBooleanList",
          }
          if not value:
              raise Exception("Empty list is not supported")
          value_type = value_list_types.get(type(value[0]))
  
      else:
          value_primitive_types = {
              str: "valueText",
              int: "valueInt",
              float: "valueInt",
              datetime: "valueDate",
              bool: "valueBoolean",
          }
          value_type = value_primitive_types.get(type(value))
  
      if not value_type:
          raise Exception(
              f"Value type {type(value)} is not supported by weaviate!"
          )
  
      return value_type
  
imports: from collections import OrderedDict
  from datetime import datetime
  from typing import List, Optional
  import weaviate
  from weaviate.embedded import EmbeddedOptions
  import pandas
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import RESPONSE_TYPE
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.vectordatabase_handler import FilterCondition, FilterOperator, TableField, VectorStoreHandler
  from mindsdb.utilities import log
  from weaviate.util import generate_uuid5
label_desc: Use image node_id 8 for calling the WeaviateDBHandler obj's underlying member method code with example usage: obj._get_weaviate_value_type(value) and returns: value_type