code: def standardize_padding(value, allow_causal=False):
      if isinstance(value, (list, tuple)):
          return value
      padding = value.lower()
      if allow_causal:
          allowed_values = {"valid", "same", "causal"}
      else:
          allowed_values = {"valid", "same"}
      if padding not in allowed_values:
          raise ValueError(
              "The `padding` argument must be a list/tuple or one of "
              f"{allowed_values}. "
              f"Received: {padding}"
          )
      return padding
  
label_desc: Use image node_id 2 for calling a global function with example usage: standardize_padding(value, allow_causal) and returns: padding, value