def METHOD_NAME(
    sheet_name: str,
    share_email: Optional[str] = None,
    gspread_client: Optional[gspread.Client] = None,
) -> gspread.Spreadsheet:
    """Opens or creates a spreadsheet, optionally sharing with `share_email`.
    Args:
        sheet_name: Name of sheet to open or create.
        share_email: Email to share sheet with.
    Returns: Spreadsheet.
    """
    gspread_client = gspread_client or init_client()
    try:
        sheet = gspread_client.open(sheet_name)
    except gspread.SpreadsheetNotFound:
        _logger.info("Sheet not found, creating.", sheet_name=sheet_name)
        sheet = gspread_client.create(sheet_name)
    if share_email:
        _logger.info("Sharing sheet", email=share_email)
        sheet.share(share_email, perm_type="user", role="writer")
    return sheet