code: def test_from_file(self):
      params = np.array([[0.0, 0.1], [0.2, 0.3], [0.4, 0.5]])
      # `create_tempfile` needs access to --test_tmpdir, however in the OSS world
      # pytest doesn't run `absltest.main`, so we need to manually parse the flags
      test_utils.ensure_flag("test_tmpdir")
      filename = self.create_tempfile("params.npy").full_path
      with open(filename, "wb") as f:
          np.save(f, params)
      f = tl.InitializerFromFile(filename)
      init_value = f(params.shape, rng())
      np.testing.assert_almost_equal(
          tl.to_list(init_value), tl.to_list(params), decimal=4
      )
  
file_path: trax/trax/layers/initializers_test.py
imports: from absl.testing import absltest
  import numpy
  from trax import fastmath
  from trax import test_utils
  import trax.layers
label_desc: Use image node_id 10 for calling the InitializersTest obj's underlying member method code with example usage: obj.test_from_file() without return types