code: def _to_s3_path(filename: str, s3_prefix: Optional[str]) -> str:
      return filename if not s3_prefix else f"{s3_prefix}/{filename}"
  
file_path: sagemaker-python-sdk/tests/integ/sagemaker/jumpstart/constants.py
imports: from __future__ import absolute_import
  from enum import Enum
  from typing import Dict
  from typing import Optional
  from typing import Union
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: _to_s3_path(filename, s3_prefix) and returns: unknown