code: def safe_to_abort_node(node: torch.fx.Node):
      """
      1. the input nodes of the node should come from the same parent
      2. the user of all the input nodes should be only one
      """
      prev_node = None
      for arg in node.args[0]:
          if len(arg.users) != 1 or arg.target != operator.getitem:
              return False
          if prev_node is None:
              prev_node = arg.args[0]
          else:
              if arg.args[0] != prev_node:
                  return False
      return True
  
imports: import itertools
  import logging
  import operator
  from typing import Any, Callable, List, Optional, Sequence, Set, Tuple, Union
  from typing_extensions import TypeAlias
  import torch
  from torch._dynamo.utils import counters
  from ..pattern_matcher import Arg, CallFunction, CallFunctionVarArgs, CallMethodVarArgs, config_flag, FailedMatch, get_arg_value, Ignored, KeywordArg, ListOf, Match, MatchContext, MULTIPLE, PatternExpr, register_graph_pattern, RepeatedExpr
  from .pre_grad import merge_getitem_cat_pass, merge_splits_pass, normalization_pass, split_cat_pass, unbind_stack_pass
label_desc: Use image node_id 13 for calling a global function with example usage: safe_to_abort_node(node) and returns: True, False, False