code: def _get_primitives(primitive_kind):
      """Helper function that selects all primitives
      that are instances of `primitive_kind`
      """
      primitives = set()
      for attribute_string in dir(featuretools.primitives):
          attribute = getattr(featuretools.primitives, attribute_string)
          if isclass(attribute):
              if (
                  issubclass(attribute, primitive_kind)
                  and attribute.name
              ):
                  primitives.add(attribute)
      return {prim.name.lower(): prim for prim in primitives}
  
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 1 for calling a global function with example usage: _get_primitives(primitive_kind) and returns: unknown