def METHOD_NAME(
    component_version: str,
    region: str,
    endpoint_url: str = None,
    assume_role_arn: str = None,
):
    """Builds a SageMaker Session which can be used by any Estimator.
    Args:
        component_version: The version of the component to include in
            the user agent.
        region: The AWS region for the SageMaker client and SageMaker Session.
        endpoint_url: A private link endpoint for SageMaker.
        assume_role_arn: The ARN of a role for the boto3 client to assume.
    Returns:
        object: A SageMaker boto3 session.
    """
    return SageMakerSession(
        boto_session=Boto3Manager._get_boto3_session(region, assume_role_arn),
        sagemaker_client=Boto3Manager.get_sagemaker_client(
            component_version, region, endpoint_url, assume_role_arn
        ),
    )