code: def test_expired_cert(self):
      path = os.path.join(self.resources_path, "expired.crt")
      message = (
          "Error using HTTPS: The certificate provided expired "
          "on 2018-08-18 19:47:18."
      )
      self.assertValidateCertRaisesRuntimeError(message, path)
  
imports: import os
  import unittest
  from tempfile import NamedTemporaryFile
  import tabpy
  from tabpy.tabpy_server.app.util import validate_cert
  from tabpy.tabpy_server.app.app import TabPyApp
  from unittest.mock import patch
label_desc: Use image node_id 3 for calling the TestCertificateValidation obj's underlying member method code with example usage: obj.test_expired_cert() without return types