code: def get_boto_session(
          region,
          aws_access_key_id=None,
          aws_secret_access_key=None,
          aws_session_token=None
          ):
      
      return boto3.session.Session(
          region_name=region,
          aws_secret_access_key=aws_secret_access_key,
          aws_access_key_id=aws_access_key_id,
          aws_session_token=aws_session_token
      )
docs: Get a boto3 session.