code: def test_strict_init(
      super_init_or_attr, sub_init_or_attr, abstract_flag
  ):
      class Abstract(
          eqx.Module,
          strict=eqx.StrictConfig(force_abstract=abstract_flag),
      ):
          if super_init_or_attr == "init":
  
              def __init__(self):
                  pass
  
          else:
              x: int
  
          if not abstract_flag:
  
              @abc.abstractmethod
              def foo(self):
                  pass
  
      with pytest.raises(
          TypeError,
          match="For readability, any custom `__init__` method, and all fields",
      ):
  
          class Concrete1(Abstract, strict=True):
              if sub_init_or_attr == "init":
  
                  def __init__(self):
                      pass
  
              else:
                  y: str
  
              def foo(self):
                  pass
  
imports: import abc
  import dataclasses
  import functools
  import inspect
  from collections.abc import Callable
  from dataclasses import InitVar
  from typing import Any, Optional
  import equinox
  import equinox.internal
  import jax
  import jax.numpy
  import jax.tree_util
  import pytest
  from .helpers import tree_allclose
label_desc: Use image node_id 30 for calling a global function with example usage: test_strict_init(super_init_or_attr, sub_init_or_attr, abstract_flag) without return types