original_docstring: Returns True if the values within `margin' indices of the edges of `img' in dimensions 1 and 2 are 0.
docstring: Returns True if the values within `margin' indices of the edges of `img' in dimensions 1 and 2 are 0.
docstring_tokens: Returns True if the values within ` margin ' indices of the edges of ` img ' in dimensions 1 and 2 are 0 .
code: def zero_margins(img, margin):
      """Returns True if the values within `margin' indices of the edges of `img' in dimensions 1 and 2 are 0."""
      if np.any(img[:, :, :margin]) or np.any(img[:, :, -margin:]):
          return False
  
      if np.any(img[:, :margin, :]) or np.any(img[:, -margin:, :]):
          return False
  
      return True
code_tokens: def zero_margins ( img , margin ) : if np . any ( img [ : , : , : margin ] ) or np . any ( img [ : , : , - margin : ] ) : return False if np . any ( img [ : , : margin , : ] ) or np . any ( img [ : , - margin : , : ] ) : return False return True
short_docstring: Returns True if the values within `margin' indices of the edges of `img' in dimensions 1 and 2 are 0.
short_docstring_tokens: Returns True if the values within ` margin ' indices of the edges of ` img ' in dimensions 1 and 2 are 0 .
comment: """Returns True if the values within `margin' indices of the edges of `img' in dimensions 1 and 2 are 0."""