code: def is_view_child(view, par):
      '''
      Checks the base address of the given arrays to figure out if child and par
      have overlapping memory regions.
      '''
      if par.base is None:
          # par is the base array.
          return view.base is par
      else:
          # par is a view of another array as well!
          # view can only be a child of par if they share base.
          return view.base is par.basf is_view_child(view, par):
      '''
      Checks the base address of the given arrays to figure out if child and par
      have overlapping memory regions.
      '''
      if par.base is None:
          # par is the base array.
          return view.base is par
      else:
          # par is a view of another array as well!
          # view can only be a child of par if they share base.
          return view.base is par.base
docs: Checks the base address of the given arrays to figure out if child and par
      have overlapping memory regions.