code: def ptype_to_ndarray_type(col_type: type):
      """
      Helper function that maps python types to ndarray types
      """
      if col_type == str:
          return NdArrayType.STR
      elif col_type == float:
          return NdArrayType.FLOAT32
      else:
          return NdArrayType.ANYTYPE
  
file_path: evadb/evadb/third_party/huggingface/create.py
imports: from typing import Dict, List, Type, Union
  import numpy
  from evadb.catalog.catalog_type import ColumnType, NdArrayType
  from evadb.catalog.models.function_io_catalog import FunctionIOCatalogEntry
  from evadb.catalog.models.function_metadata_catalog import FunctionMetadataCatalogEntry
  from evadb.third_party.huggingface.model import ASRHFModel, AudioHFModel, HFInputTypes, ImageHFModel, TextHFModel
  from evadb.utils.generic_utils import try_to_import_transformers
label_desc: Use image node_id 7 for calling a global function with example usage: ptype_to_ndarray_type(col_type) and returns: NdArrayType, NdArrayType, NdArrayType