class_docstr: Represents a slice of a SheetCoordinateSystem; i.e., an array
  specifying the row and column start and end points for a submatrix
  of the SheetCoordinateSystem.
  
  The slice is created from the supplied bounds by calculating the
  slice that corresponds most closely to the specified bounds.
  Therefore, the slice does not necessarily correspond exactly to
  the specified bounds. The bounds that do exactly correspond to the
  slice are available via the 'bounds' attribute.
  
  Note that the slice does not respect the bounds of the
  SheetCoordinateSystem, and that actions such as translate() also
  do not respect the bounds. To ensure that the slice is within the
  SheetCoordinateSystem's bounds, use crop_to_sheet().
docstr: Crop the slice to the SheetCoordinateSystem's bounds.
docstr_tok: ["Crop","the","slice","to","the","SheetCoordinateSystem","'s","bounds","."]
code: def crop_to_sheet(self, sheet_coord_system):
      "Crop the slice to the SheetCoordinateSystem's bounds."
      maxrow, maxcol = sheet_coord_system.shape
  
      self[0] = max(0, self[0])
      self[1] = min(maxrow, self[1])
      self[2] = max(0, self[2])
      self[3] = min(maxcol, self[3])
  
imports: import numpy
  from .boundingregion import BoundingBox
  from .util import datetime_types
label_desc: Use image node_id 10 for calling the Slice obj's underlying member method code with example usage: obj.crop_to_sheet(sheet_coord_system) without return types