code: def testDo_InfraBlessingAsModel_FailIfNoWarmup(self):
      infra_blessing = standard_artifacts.InfraBlessing()
      infra_blessing.set_int_custom_property("blessed", True)
      infra_blessing.set_int_custom_property("has_model", 0)
  
      with self.assertRaisesRegex(
          RuntimeError, "InfraBlessing does not contain a model"
      ):
          self._executor.Do(
              {
                  standard_component_specs.INFRA_BLESSING_KEY: [
                      infra_blessing
                  ]
              },
              self._output_dict,
              self._exec_properties,
          )
  
imports: import json
  import os
  import tensorflow
  from tfx.components.pusher import executor
  from tfx.dsl.io import fileio
  from tfx.types import standard_artifacts
  from tfx.types import standard_component_specs
  from tfx.utils import io_utils
  from tfx.utils import path_utils
label_desc: Use image node_id 17 for calling the ExecutorTest obj's underlying member method code with example usage: obj.testDo_InfraBlessingAsModel_FailIfNoWarmup() without return types