code: def test_tweedie_loglike_obs(power):
      """Test that Tweedie loglike is normalized to 1."""
      tweedie = Tweedie(var_power=power, eql=False)
      mu = 2.0
      scale = 2.9
  
      def pdf(y):
          return np.squeeze(
              np.exp(tweedie.loglike_obs(endog=y, mu=mu, scale=scale))
          )
  
      assert_allclose(
          pdf(0) + integrate.quad(pdf, 0, 1e2)[0], 1, atol=1e-4
      )
  
file_path: statsmodels/statsmodels/genmod/families/tests/test_family.py
imports: import warnings
  import pytest
  import numpy
  from numpy.testing import assert_allclose
  from scipy import integrate
  from statsmodels.compat.scipy import SP_LT_17
  from statsmodels.tools.sm_exceptions import ValueWarning
  import statsmodels.genmod.families
  from statsmodels.genmod.families.family import Tweedie
  import statsmodels.genmod.families.links
label_desc: Use image node_id 4 for calling a global function with example usage: test_tweedie_loglike_obs(power) and returns: np