class_docstr: Class to represent the location where checkpoints are accessed in a remote function.
  
  To save or load checkpoints in a remote function, pass an CheckpointLocation object as a
  function parameter and use it as a os.PathLike object. This CheckpointLocation object
  represents the local directory (/opt/ml/checkpoints/) of checkpoints in side the job.
code: def __init__(self, s3_uri):
      if not _validate_s3_uri_for_checkpoint(s3_uri):
          raise ValueError(
              "CheckpointLocation should be specified with valid s3 URI."
          )
      self._s3_uri = s3_uri
  
imports: from __future__ import absolute_import
  from os import PathLike
  import re
label_desc: Use image node_id 1 to create a new CheckpointLocation object from inherited base classes: PathLike with example: obj = CheckpointLocation(s3_uri)