code: def or_none(f, x):
      if x is None:
          return x
      return f(x)
  
file_path: hail/hail/python/hailtop/aiocloud/aiogoogle/client/bigquery_client.py
imports: from typing import Any, Dict, Mapping, Optional
  from .base_client import GoogleBaseClient
label_desc: Use image node_id 1 for calling a global function with example usage: or_none(f, x) and returns: f, x