parameters: (datetime_str: str, original_timezone: str)
return_statement: return datetime_str
docstring: Restores UTC '+00:00' offset with 'Z' or '-00:00' if necessary.
  
    This is necessary because dateutil will replace the 'Z' and '-00:00' timezones
    with '+00:00', which is irreversible.
  
    Args:
      datetime_str: The datetime string to examine.
      original_timezone: The original timezone string on the primitive.
  
    Returns:
      The restored datetime_str. Note that this will remain unchanged if there was
      no UTC timezone replacement that occurred.
docstring_summary: Restores UTC '+00:00' offset with 'Z' or '-00:00' if necessary.
docstring_tokens: Restores UTC + 00 : 00 offset with Z or - 00 : 00 if necessary .
function: def restore_utc_timezone(datetime_str: str, original_timezone: str) -> str:
    """Restores UTC '+00:00' offset with 'Z' or '-00:00' if necessary.
  
    This is necessary because dateutil will replace the 'Z' and '-00:00' timezones
    with '+00:00', which is irreversible.
  
    Args:
      datetime_str: The datetime string to examine.
      original_timezone: The original timezone string on the primitive.
  
    Returns:
      The restored datetime_str. Note that this will remain unchanged if there was
      no UTC timezone replacement that occurred.
    """
    if datetime_str.endswith('+00:00'):
      if (original_timezone == SIMPLE_ZULU or original_timezone == '-00:00'):
        return datetime_str.replace('+00:00', original_timezone, 1)
      if original_timezone == 'UTC':
        return datetime_str.replace('+00:00', SIMPLE_ZULU, 1)
    return datetime_str
function_tokens: def restore_utc_timezone ( datetime_str : str , original_timezone : str ) -> str : if datetime_str . endswith ( '+00:00' ) : if ( original_timezone == SIMPLE_ZULU or original_timezone == '-00:00' ) : return datetime_str . replace ( '+00:00' , original_timezone , 1 ) if original_timezone == 'UTC' : return datetime_str . replace ( '+00:00' , SIMPLE_ZULU , 1 ) return datetime_str