code: def test_load_primitive_from_file(primitives_to_install_dir):
      primitve_file = os.path.join(
          primitives_to_install_dir, "custom_max.py"
      )
      primitive_name, primitive_obj = load_primitive_from_file(
          primitve_file
      )
      assert issubclass(primitive_obj, PrimitiveBase)
  
imports: import os
  import pytest
  from featuretools import list_primitives, summarize_primitives
  from featuretools.primitives import AddNumericScalar, Age, Count, Day, Diff, GreaterThan, Haversine, IsFreeEmailDomain, IsNull, Last, Max, Mean, Min, Mode, Month, MultiplyBoolean, NMostCommon, NumCharacters, NumericLag, NumUnique, NumWords, PercentTrue, Skew, Std, Sum, Weekday, Year, get_aggregation_primitives, get_default_aggregation_primitives, get_default_transform_primitives, get_transform_primitives
  from featuretools.primitives.base import PrimitiveBase
  from featuretools.primitives.base.transform_primitive_base import TransformPrimitive
  from featuretools.primitives.utils import _check_input_types, _get_descriptions, _get_summary_primitives, _get_unique_input_types, list_primitive_files, load_primitive_from_file
  from featuretools.utils.gen_utils import Library
label_desc: Use image node_id 11 for calling a global function with example usage: test_load_primitive_from_file(primitives_to_install_dir) without return types