code: def test_m_good_shape(
      data_1d_multiple_groups, data_2d_multiple_groups
  ):
      m = 10
      model = bmb.Model(
          "y ~ 0 + hsgp(x2, c=2, m=m)", data_1d_multiple_groups
      )
      term = model.response_component.terms["hsgp(x2, c=2, m=m)"]
      assert (term.m == np.array([m])).all()
  
      m = 10
      model = bmb.Model(
          "y ~ 0 + hsgp(x2, by=fac, c=2, m=m)", data_1d_multiple_groups
      )
      term = model.response_component.terms[
          "hsgp(x2, by=fac, c=2, m=m)"
      ]
      assert (term.m == np.array([m])).all()
  
      m = [20, 10]
      model = bmb.Model(
          "outcome ~ 0 + hsgp(x, y, c=2, m=m)", data_2d_multiple_groups
      )
      term = model.response_component.terms["hsgp(x, y, c=2, m=m)"]
      assert (np.array(m) == term.m).all()
  
      m = [20, 10]
      model = bmb.Model(
          "outcome ~ 0 + hsgp(x, y, by=group, c=2, m=m)",
          data_2d_multiple_groups,
      )
      term = model.response_component.terms[
          "hsgp(x, y, by=group, c=2, m=m)"
      ]
      assert (np.array(m) == term.m).all()
  
imports: import pathlib
  import re
  import bambi
  import numpy
  import pandas
  import pytest
label_desc: Use image node_id 11 for calling a global function with example usage: test_m_good_shape(data_1d_multiple_groups, data_2d_multiple_groups) without return types