code: def _get_descriptions(primitives):
      descriptions = []
      for prim in primitives:
          description = ""
          if prim.__doc__ is not None:
              # Break on the empty line between the docstring description and the remainder of the docstring
              description = prim.__doc__.split("\n\n")[0]
              # remove any excess whitespace from line breaks
              description = " ".join(description.split())
          descriptions.append(description)
      return descriptions
  
imports: import importlib.util
  import os
  from inspect import getfullargspec, getsource, isclass
  from typing import Dict, List
  import pandas
  from woodwork import list_logical_types, list_semantic_tags, type_system
  from woodwork.column_schema import ColumnSchema
  from woodwork.logical_types import NaturalLanguage
  import featuretools
  from featuretools.primitives import NumberOfCommonWords
  from featuretools.primitives.base import AggregationPrimitive, PrimitiveBase, TransformPrimitive
  from featuretools.utils.gen_utils import Library, find_descendents
label_desc: Use image node_id 10 for calling a global function with example usage: _get_descriptions(primitives) and returns: descriptions