parameters: (self, im, box)
return_statement: return im.crop((x0, y0, x1, y1))
docstring: Returns a rectangular region from the core image object im.
  
          This is equivalent to calling im.crop((x0, y0, x1, y1)), but
          includes additional sanity checks.
  
          :param im: a core image object
          :param box: The crop rectangle, as a (left, upper, right, lower)-tuple.
          :returns: A core image object.
docstring_summary: Returns a rectangular region from the core image object im.
docstring_tokens: Returns a rectangular region from the core image object im .
function: def _crop(self, im, box):
          """
          Returns a rectangular region from the core image object im.
  
          This is equivalent to calling im.crop((x0, y0, x1, y1)), but
          includes additional sanity checks.
  
          :param im: a core image object
          :param box: The crop rectangle, as a (left, upper, right, lower)-tuple.
          :returns: A core image object.
          """
  
          x0, y0, x1, y1 = map(int, map(round, box))
  
          absolute_values = (abs(x1 - x0), abs(y1 - y0))
  
          _decompression_bomb_check(absolute_values)
  
          return im.crop((x0, y0, x1, y1))
function_tokens: def _crop ( self , im , box ) : x0 , y0 , x1 , y1 = map ( int , map ( round , box ) ) absolute_values = ( abs ( x1 - x0 ) , abs ( y1 - y0 ) ) _decompression_bomb_check ( absolute_values ) return im . crop ( ( x0 , y0 , x1 , y1 ) )