code: def get_primitive_return_type(
      primitive: PrimitiveBase,
  ) -> ColumnSchema:
      """
      Get Return type from a primitive
  
      Args:
          primitive (PrimitiveBase)
  
      Returns:
          ColumnSchema
      """
      if primitive.return_type:
          return primitive.return_type
      return_type = primitive.input_types[0]
      if isinstance(return_type, list):
          return_type = return_type[0]
      return return_type
  
file_path: featuretools/featuretools/feature_discovery/utils.py
imports: import hashlib
  import json
  from functools import lru_cache
  from typing import Any, Dict, Tuple
  from woodwork.column_schema import ColumnSchema
  from featuretools.feature_discovery.type_defs import ANY
  from featuretools.primitives.base.primitive_base import PrimitiveBase
  from featuretools.primitives.utils import get_all_logical_type_names, get_all_primitives, serialize_primitive
label_desc: Use image node_id 3 for calling a global function with example usage: get_primitive_return_type(primitive) and returns: return_type, primitive