code: def test_lbfgs():
      target = tfd.Independent(
          tfd.Normal(jnp.array([1.0, 2.0]), jnp.ones(2)),
          reinterpreted_batch_ndims=1,
      ).log_prob
      optimization_path, _ = pathfinder.lbfgs(
          log_target_density=target,
          initial_value=jnp.array([-1.0, -4.0]),
          max_iters=10,
      )
      assert jnp.all(optimization_path[-1] == jnp.array([1.0, 2.0]))
  
file_path: probability/discussion/pathfinder/pathfinder_test.py
imports: import jax
  import jax.numpy
  import numpy
  import pytest
  from discussion.pathfinder import pathfinder
  import tensorflow_probability.substrates.jax
label_desc: Use image node_id 3 for calling a global function with example usage: test_lbfgs() without return types