code: def test_custom_primitive_default_kwargs(es):
      class SumNTimes(AggregationPrimitive):
          name = "sum_n_times"
          input_types = [ColumnSchema(semantic_tags={"numeric"})]
          return_type = ColumnSchema(semantic_tags={"numeric"})
  
          def __init__(self, n=1):
              self.n = n
  
      sum_n_1_n = 1
      sum_n_1_base_f = Feature(es["log"].ww["value"])
      sum_n_1 = Feature(
          [sum_n_1_base_f],
          parent_dataframe_name="sessions",
          primitive=SumNTimes(n=sum_n_1_n),
      )
      sum_n_2_n = 2
      sum_n_2_base_f = Feature(es["log"].ww["value_2"])
      sum_n_2 = Feature(
          [sum_n_2_base_f],
          parent_dataframe_name="sessions",
          primitive=SumNTimes(n=sum_n_2_n),
      )
      assert sum_n_1_base_f == sum_n_1.base_features[0]
      assert sum_n_1_n == sum_n_1.primitive.n
      assert sum_n_2_base_f == sum_n_2.base_features[0]
      assert sum_n_2_n == sum_n_2.primitive.n
  
imports: from datetime import datetime
  from inspect import isclass
  from math import isnan
  import numpy
  import pandas
  import pytest
  from woodwork.column_schema import ColumnSchema
  from woodwork.logical_types import Datetime
  from featuretools import AggregationFeature, Feature, IdentityFeature, Timedelta, calculate_feature_matrix, dfs, primitives
  from featuretools.entityset.relationship import RelationshipPath
  from featuretools.feature_base.cache import feature_cache
  from featuretools.primitives import Count, Max, Mean, Median, NMostCommon, NumTrue, NumUnique, Sum, TimeSinceFirst, TimeSinceLast, get_aggregation_primitives
  from featuretools.primitives.base import AggregationPrimitive
  from featuretools.synthesis.deep_feature_synthesis import DeepFeatureSynthesis, match
  from featuretools.tests.testing_utils import backward_path, feature_with_name, to_pandas
  from featuretools.utils.gen_utils import Library
label_desc: Use image node_id 21 for calling a global function with example usage: test_custom_primitive_default_kwargs(es) without return types