code: def valid_ebm(ebm):
      assert ebm.term_features_[0] == (0,)
  
      for term_scores in ebm.term_scores_:
          all_finite = np.isfinite(term_scores).all()
          assert all_finite
  
file_path: interpret/python/interpret-core/tests/glassbox/ebm/test_merge_ebms.py
imports: from interpret.utils import make_synthetic
  from ...tutils import iris_classification, smoke_test_explanations
  from sklearn.model_selection import train_test_split
  from interpret.glassbox import ExplainableBoostingClassifier, merge_ebms
  import numpy
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: valid_ebm(ebm) without return types