class_docstr: SageMaker ``MultiDataModel`` can be used to deploy multiple models to the same ``Endpoint``.
  
  And also deploy additional models to an existing SageMaker multi-model ``Endpoint``
class_docstr_tok: ["SageMaker","``","MultiDataModel","``","can","be","used","to","deploy","multiple","models","to","the","same","``","Endpoint","``",".","And","also","deploy","additional","models","to","an","existing","SageMaker","multi-model","``","Endpoint","``"]
docstr: Generates and returns relative paths to model archives.
  
  Archives are stored at model_data_prefix S3 location.
  
  Yields: Paths to model archives relative to model_data_prefix path.
docstr_tok: ["Generates","and","returns","relative","paths","to","model","archives",".","Archives","are","stored","at","model_data_prefix","S3","location",".","Yields",":","Paths","to","model","archives","relative","to","model_data_prefix","path","."]
code: def list_models(self):
      """Generates and returns relative paths to model archives.
  
      Archives are stored at model_data_prefix S3 location.
  
      Yields: Paths to model archives relative to model_data_prefix path.
      """
      bucket, url_prefix = s3.parse_s3_url(self.model_data_prefix)
      file_keys = self.sagemaker_session.list_s3_files(
          bucket=bucket, key_prefix=url_prefix
      )
      for file_key in file_keys:
          # Return the model paths relative to the model_data_prefix
          # Ex: "a/b/c.tar.gz" -> "b/c.tar.gz" where url_prefix = "a/"
          yield file_key.replace(url_prefix, "")
  
file_path: sagemaker-python-sdk/src/sagemaker/multidatamodel.py
imports: from __future__ import absolute_import
  import os
  from typing import Union, Optional
  from six.moves.urllib.parse import urlparse
  import sagemaker
  from sagemaker import local, s3
  from sagemaker.deprecations import removed_kwargs
  from sagemaker.model import Model
  from sagemaker.session import Session
  from sagemaker.utils import pop_out_unused_kwarg, format_tags
  from sagemaker.workflow.entities import PipelineVariable
label_desc: Use image node_id 5 for calling the MultiDataModel obj's underlying member method code with example usage: obj.list_models() without return types