code: def mlp(scope: Scope, x: Array, sizes: Sequence[int] = (8, 1)):
      std_dense = weight_std(
          partial(
              nn.dense, kernel_init=nn.initializers.normal(stddev=1e5)
          )
      )
      for size in sizes[:-1]:
          x = scope.child(std_dense, prefix="hidden_")(x, size)
      return scope.child(nn.dense, "out")(x, sizes[-1])
  
file_path: flax/tests/core/design/core_weight_std_test.py
imports: from functools import partial
  from typing import Sequence
  import jax
  from absl.testing import absltest
  from jax import numpy
  from jax import random
  from flax.core import Array, Scope, apply, init, lift, nn, unfreeze
label_desc: Use image node_id 2 for calling a global function with example usage: mlp(scope, x, sizes) and returns: scope