code: def _from_jvm_date_type(jvm_type):
      """
      Convert a JVM date type to its Python equivalent
  
      Parameters
      ----------
      jvm_type: org.apache.arrow.vector.types.pojo.ArrowType$Date
  
      Returns
      -------
      typ: pyarrow.DataType
      """
      day_unit = jvm_type.getUnit().toString()
      if day_unit == "DAY":
          return pa.date32()
      elif day_unit == "MILLISECOND":
          return pa.date64()
  
file_path: arrow/python/pyarrow/jvm.py
imports: import pyarrow
label_desc: Use image node_id 6 for calling a global function with example usage: _from_jvm_date_type(jvm_type) and returns: pa, pa