class_docstr: Helper policy class for testing hvp classes
class_docstr_tok: ["Helper","policy","class","for","testing","hvp","classes"]
code: def __init__(self, n_vars, name="OneParamPolicy"):
      super().__init__(name)
      with tf.compat.v1.variable_scope(self.name) as vs:
          self._variable_scope = vs
          _ = [tf.Variable([0.0]) for _ in range(n_vars)]
  
imports: import pickle
  import numpy
  import pytest
  import tensorflow
  from garage.tf.models import Module
  from garage.tf.optimizers.conjugate_gradient_optimizer import ConjugateGradientOptimizer
  from garage.tf.optimizers.conjugate_gradient_optimizer import FiniteDifferenceHVP
  from garage.tf.optimizers.conjugate_gradient_optimizer import _cg, PearlmutterHVP
  from garage.tf.policies import Policy
  from tests.fixtures import TfGraphTestCase
label_desc: Use image node_id 1 to create a new HelperPolicy object from inherited base classes: Module, Policy with example: obj = HelperPolicy(n_vars, name)