code: def _sanitize_key_as_env_var(key):
      """
      Sanitize a key as an environment variable name.
      This is purely a convenience trade-off to cover common cases well, vs. introducing
      ambiguities (e.g. did the final '_' come from '.', or '-' or is original?).
  
      1/27/2023(jackie):
  
      We start with few rules and should *sparingly* add more over time.
      Also, it's TBD whether all possible providers will share the same sanitization logic.
      Therefore we will keep this function private for now
      """
      return key.replace("-", "_").replace(".", "_").replace("/", "_")
  
file_path: metaflow/metaflow/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.py
imports: import base64
  import json
  from json import JSONDecodeError
  from metaflow.exception import MetaflowException
  from metaflow.metaflow_config import AWS_SECRETS_MANAGER_DEFAULT_REGION
  from metaflow.plugins.secrets import SecretsProvider
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: _sanitize_key_as_env_var(key) and returns: key