code: def test_strict_default():
      class AbstractA(
          eqx.Module, strict=eqx.StrictConfig(force_abstract=True)
      ):
          def foo(self) -> int:
              return 4
  
      class AbstractB(
          AbstractA,
          strict=eqx.StrictConfig(
              force_abstract=True, allow_method_override=True
          ),
      ):
          def foo(self) -> int:
              return 5
  
      with pytest.raises(
          TypeError,
          match="Strict `eqx.Module`s cannot override concrete",
      ):
  
          class C1(AbstractB, strict=True):
              def foo(self):
                  return 6
  
      class C2(
          AbstractB, strict=eqx.StrictConfig(allow_method_override=True)
      ):
          def foo(self):
              return 7
  
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 35 for calling a global function with example usage: test_strict_default() and returns: int, int, int, int