code: def _get_initial_state(
      value_and_gradients_function,
      initial_position,
      num_correction_pairs,
      tolerance,
  ):
      """Create LBfgsOptimizerResults with initial state of search procedure."""
      init_args = bfgs_utils.get_initial_state_args(
          value_and_gradients_function, initial_position, tolerance
      )
      empty_queue = _make_empty_queue_for(
          num_correction_pairs, initial_position
      )
      init_args.update(
          position_deltas=empty_queue, gradient_deltas=empty_queue
      )
      return LBfgsOptimizerResults(**init_args)
  
file_path: probability/tensorflow_probability/python/optimizer/lbfgs.py
imports: import collections
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.optimizer import bfgs_utils
label_desc: Use image node_id 2 for calling a global function with example usage: _get_initial_state(value_and_gradients_function, initial_position, num_correction_pairs, tolerance) and returns: LBfgsOptimizerResults