code: def is_inplace(n: Node):
      """Get the inplace argument from torch.fx.Node
  
      Args:
          node (Node): torch.fx.Node
  
      Returns:
          bool: indicates whether this op is inplace
      """
      inplace = False
      if n.op == "call_function":
          inplace = n.kwargs.get("inplace", False)
          if is_compatible_with_meta():
              from .constants import ALIAS_ATEN
  
              if n.target in ALIAS_ATEN:
                  inplace = True
      elif n.op == "call_module":
          inplace = getattr(
              n.graph.owning_module.get_submodule(n.target),
              "inplace",
              False,
          )
  
      return inplace
  
imports: from typing import Dict, List, Tuple, Union
  import torch
  from torch.fx import Node
  from .._compatibility import compatibility, is_compatible_with_meta
label_desc: Use image node_id 3 for calling a global function with example usage: is_inplace(n) and returns: inplace