code: def sanitize_batch_tag(key, value):
      """
      Sanitize a key and value for use as a Batch tag.
      """
      # https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html#tag-restrictions
      RE_NOT_PERMITTED = r"[^A-Za-z0-9\s\+\-\=\.\_\:\/\@]"
      _key = re.sub(RE_NOT_PERMITTED, "", key)[:128]
      _value = re.sub(RE_NOT_PERMITTED, "", value)[:256]
  
      return _key, _value
  
imports: import re
  import requests
  from metaflow.exception import MetaflowException
label_desc: Use image node_id 4 for calling a global function with example usage: sanitize_batch_tag(key, value) and returns: _key,  _value