code: def is_shared(self) -> bool:
      is_shared = True
      row = self._row
      if row is not None:
          is_shared = is_shared and row.is_shared()
      rowptr = self._rowptr
      if rowptr is not None:
          is_shared = is_shared and rowptr.is_shared()
      is_shared = is_shared and self._col.is_shared()
      value = self._value
      if value is not None:
          is_shared = is_shared and value.is_shared()
      rowcount = self._rowcount
      if rowcount is not None:
          is_shared = is_shared and rowcount.is_shared()
      colptr = self._colptr
      if colptr is not None:
          is_shared = is_shared and colptr.is_shared()
      colcount = self._colcount
      if colcount is not None:
          is_shared = is_shared and colcount.is_shared()
      csr2csc = self._csr2csc
      if csr2csc is not None:
          is_shared = is_shared and csr2csc.is_shared()
      csc2csr = self._csc2csr
      if csc2csr is not None:
          is_shared = is_shared and csc2csr.is_shared()
      return is_shared
  
imports: import warnings
  from typing import List, Optional, Tuple
  import torch
  from torch_scatter import scatter_add, segment_csr
  from torch_sparse.utils import Final, index_sort
label_desc: Use image node_id 3 for calling a global function with example usage: is_shared() and returns: is_shared