<human>:  What is a good Python code to access s3 data sagemaker.
<bot>: Here is a Python code to access s3 data sagemaker

import boto3

def s3_data_sagemaker(bucket_name, s3_key, s3_prefix=""):
  """Returns the s3 data from sagemaker"""
  return "s3://{}/{}".format(bucket_name, s3_key)

# Enter the bucket name
bucket_name = "my-bucket"

# Enter the s3 key
s3_key = "my-s3-key"

# Calling the function
s3_data = s3_data_sagemaker(bucket_name, s3_key)

# Printing the s3 data
print(s3_data)

#Example Output
# s3://my-bucket/my-s3-key

#Remember to inspect code for bugs.