docstr: Run the LatestPolicyModel ResolverOp.
docstr_tok: ["Run","the","LatestPolicyModel","ResolverOp","."]
code: def _latest_policy_model(
      self,
      policy: latest_policy_model_op.Policy,
      raise_skip_signal=True,
      model: Optional[List[types.Artifact]] = None,
      model_blessing: Optional[List[types.Artifact]] = None,
      model_infra_blessing: Optional[List[types.Artifact]] = None,
  ):
      """Run the LatestPolicyModel ResolverOp."""
      if model is None:
          input_dict = {"model": self.artifacts}
      else:
          input_dict = {"model": model}
  
      if model_blessing is not None:
          input_dict["model_blessing"] = model_blessing
  
      if model_infra_blessing is not None:
          input_dict["model_infra_blessing"] = model_infra_blessing
  
      return self._run_latest_policy_model(
          input_dict, policy=policy, raise_skip_signal=raise_skip_signal
      )
  
imports: from typing import Dict, List, Optional
  from absl.testing import parameterized
  import tensorflow
  from tfx import types
  from tfx.dsl.input_resolution import resolver_op
  from tfx.dsl.input_resolution.ops import latest_policy_model_op
  from tfx.dsl.input_resolution.ops import ops
  from tfx.dsl.input_resolution.ops import test_utils
  from tfx.orchestration.portable.input_resolution import exceptions
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 1 for calling the LatestPolicyModelOpTest obj's underlying member method code with example usage: obj._latest_policy_model(policy, raise_skip_signal, model, model_blessing, model_infra_blessing) and returns: self