class_docstr: LatestPolicyModel operator.
class_docstr_tok: ["LatestPolicyModel","operator","."]
code: def _raise_skip_signal_or_return_empty_dict(
      self, error_msg: str = ""
  ):
      if self.raise_skip_signal:
          raise exceptions.SkipSignal(error_msg)
  
      # Return a dictionary with the proper keys but empty artifact lists for
      # values.
      result = {ops_utils.MODEL_KEY: []}
  
      if (
          self.policy == Policy.LATEST_EVALUATOR_BLESSED
          or self.policy == Policy.LATEST_BLESSED
      ):
          result[ops_utils.MODEL_BLESSSING_KEY] = []
  
      if (
          self.policy == Policy.LATEST_INFRA_VALIDATOR_BLESSED
          or self.policy == Policy.LATEST_BLESSED
      ):
          result[ops_utils.MODEL_INFRA_BLESSING_KEY] = []
  
      elif self.policy == Policy.LATEST_PUSHED:
          result[ops_utils.MODEL_PUSH_KEY] = []
  
      return result
  
imports: import collections
  import enum
  from typing import Dict
  from tfx import types
  from tfx.dsl.input_resolution import resolver_op
  from tfx.dsl.input_resolution.ops import ops_utils
  from tfx.orchestration.portable.input_resolution import exceptions
  from tfx.orchestration.portable.mlmd import event_lib
  from tfx.orchestration.portable.mlmd import filter_query_builder
  from tfx.types import artifact_utils
  from tfx.utils import typing_utils
  from ml_metadata.proto import metadata_store_pb2
  from ml_metadata.tools.mlmd_resolver import metadata_resolver
label_desc: Use image node_id 1 for calling the LatestPolicyModel obj's underlying member method code with example usage: obj._raise_skip_signal_or_return_empty_dict(error_msg) and returns: result