code: def _validate_s3_uri_for_checkpoint(s3_uri: str):
      """Validate if checkpoint location is specified with a valid s3 URI."""
      return re.match(S3_URI_REGEX_PATTERN, s3_uri)
  
imports: from __future__ import absolute_import
  from os import PathLike
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_s3_uri_for_checkpoint(s3_uri) and returns: re