code: def test_group_api_params(
      three_var_model, raises, params, type_, kw, formula
  ):
      with three_var_model, raises:
          g = opvi.Group([three_var_model.one], params=params, **kw)
          assert isinstance(g, type_)
          if g.has_logq:
              # should work as well
              logq = g.logq
              logq = g.set_size_and_deterministic(logq, 1, 0)
              logq.eval()
  
imports: import functools
  import numpy
  import pytensor.tensor
  import pytest
  import pymc
  from pymc.variational import opvi
  from pymc.variational.approximations import Empirical, EmpiricalGroup, FullRank, FullRankGroup, MeanField, MeanFieldGroup
  from tests.helpers import not_raises
label_desc: Use image node_id 4 for calling a global function with example usage: test_group_api_params(three_var_model, raises, params, type_, kw, formula) without return types