code: def SyncBatchNorm(*args, **kwargs):
      """In cpu environment nn.SyncBatchNorm does not have kernel so use nn.BatchNorm instead"""
      if paddle.get_device() == "cpu":
          return nn.BatchNorm(*args, **kwargs)
      else:
          return nn.SyncBatchNorm(*args, **kwargs)
  
file_path: PaddleHub/modules/image/semantic_segmentation/FCN_HRNet_W18_Face_Seg/model/layers.py
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 1 for calling a global function with example usage: SyncBatchNorm() and returns: nn, nn