code: def get_s3_client(
      s3_role_arn=None, s3_session_vars=None, s3_client_params=None
  ):
      from metaflow.plugins.aws.aws_client import get_aws_client
  
      return get_aws_client(
          "s3",
          with_error=True,
          role_arn=s3_role_arn,
          session_vars=s3_session_vars
          if s3_session_vars
          else DATATOOLS_SESSION_VARS,
          client_params=s3_client_params
          if s3_client_params
          else DATATOOLS_CLIENT_PARAMS,
      )
  
file_path: metaflow/metaflow/plugins/datatools/s3/s3util.py
imports: from __future__ import print_function
  from datetime import datetime
  import random
  import time
  import sys
  import os
  from metaflow.exception import MetaflowException
  from metaflow.metaflow_config import DATATOOLS_CLIENT_PARAMS, DATATOOLS_SESSION_VARS, S3_RETRY_COUNT, RETRY_WARNING_THRESHOLD
label_desc: Use image node_id 1 for calling a global function with example usage: get_s3_client(s3_role_arn, s3_session_vars, s3_client_params) and returns: get_aws_client