code: def _get_secrets_client():
      try:
          client = getattr(fois, "SecretsManager")
      except:  # pylint: disable=bare-except
          client = getattr(fois, "EnvSecretProvider")
      return client()
  
imports: import logging
  import traceback
  import typing
  from typing import Optional
  from ..internal import secrets
label_desc: Use image node_id 1 for calling a global function with example usage: _get_secrets_client() and returns: client