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