code: def test_family_link(family, links):
      with warnings.catch_warnings():
          msg = (
              "Negative binomial dispersion parameter alpha not set. "
              "Using default value alpha=1.0."
          )
          warnings.filterwarnings(
              "ignore", message=msg, category=ValueWarning
          )
          warnings.filterwarnings("ignore", category=FutureWarning)
          for link in links:
              assert family(link())
  
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 2 for calling a global function with example usage: test_family_link(family, links) without return types