code: def is_pipeline_stage_after_split(rank=None):
      """Return True if pipeline stage executes decoder block for a model
      with both encoder and decoder."""
      if get_pipeline_model_parallel_world_size() == 1:
          return True
      if rank is None:
          rank = get_pipeline_model_parallel_rank()
      global _PIPELINE_MODEL_PARALLEL_SPLIT_RANK
      if _PIPELINE_MODEL_PARALLEL_SPLIT_RANK is None:
          return True
      if rank >= _PIPELINE_MODEL_PARALLEL_SPLIT_RANK:
          return True
      return False
  
imports: from typing import Tuple, Optional
  import warnings
  import os
  import torch
  from apex.transformer.log_util import get_transformer_logger
  from apex.transformer._ucc_util import HAS_UCC
label_desc: Use image node_id 25 for calling a global function with example usage: is_pipeline_stage_after_split(rank) and returns: False, True, True, True