class_docstr: Base class for HTTP-based resolvers.
class_docstr_tok: ["Base","class","for","HTTP-based","resolvers","."]
docstr: Disables cert validation if TFHUB_DISABLE_CERT_VALIDATION is set.
  
  Checks whether certificate validation should be disabled when resolving an
  URL for downloading a model. This should only be done if the URL is
  trustworthy.
docstr_tok: ["Disables","cert","validation","if","TFHUB_DISABLE_CERT_VALIDATION","is","set",".","Checks","whether","certificate","validation","should","be","disabled","when","resolving","an","URL","for","downloading","a","model",".","This","should","only","be","done","if","the","URL","is","trustworthy","."]
code: def _maybe_disable_cert_validation(self):
      """Disables cert validation if TFHUB_DISABLE_CERT_VALIDATION is set.
  
      Checks whether certificate validation should be disabled when resolving an
      URL for downloading a model. This should only be done if the URL is
      trustworthy.
      """
      if (
          os.getenv(_TFHUB_DISABLE_CERT_VALIDATION)
          == _TFHUB_DISABLE_CERT_VALIDATION_VALUE
      ):
          self._context.check_hostname = False
          self._context.verify_mode = ssl.CERT_NONE
          logging.warning(
              "Disabled certificate validation for resolving handles."
          )
  
imports: import abc
  import datetime
  import enum
  import os
  import socket
  import ssl
  import sys
  import tarfile
  import tempfile
  import time
  import urllib
  import uuid
  from absl import flags
  from absl import logging
  import tensorflow
  from tensorflow_hub import file_utils
  from tensorflow_hub import tf_utils
label_desc: Use image node_id 6 for calling the HttpResolverBase obj's underlying member method code with example usage: obj._maybe_disable_cert_validation() without return types