class_docstr: Base class for instance masks.
class_docstr_tok: ["Base","class","for","instance","masks","."]
docstr: Shear the masks.
  
  Args:
      out_shape (tuple[int]): Shape for output mask, format (h, w).
      magnitude (int | float): The magnitude used for shear.
      direction (str): The shear direction, either "horizontal"
          or "vertical".
      border_value (int | tuple[int]): Value used in case of a
          constant border. Default 0.
      interpolation (str): Same as in :func:`mmcv.imshear`.
  
  Returns:
      ndarray: Sheared masks.
docstr_tok: ["Shear","the","masks",".","Args",":","out_shape","(","tuple","[","int","]",")",":","Shape","for","output","mask",",","format","(","h",",","w",")",".","magnitude","(","int","|","float",")",":","The","magnitude","used","for","shear",".","direction","(","str",")",":","The","shear","direction",",","either","``","horizontal","''","or","``","vertical","''",".","border_value","(","int","|","tuple","[","int","]",")",":","Value","used","in","case","of","a","constant","border",".","Default","0.","interpolation","(","str",")",":","Same","as","in",":","func",":","`","mmcv.imshear","`",".","Returns",":","ndarray",":","Sheared","masks","."]
code: def shear(
      self,
      out_shape,
      magnitude,
      direction="horizontal",
      border_value=0,
      interpolation="bilinear",
  ):
      """Shear the masks.
  
      Args:
          out_shape (tuple[int]): Shape for output mask, format (h, w).
          magnitude (int | float): The magnitude used for shear.
          direction (str): The shear direction, either "horizontal"
              or "vertical".
          border_value (int | tuple[int]): Value used in case of a
              constant border. Default 0.
          interpolation (str): Same as in :func:`mmcv.imshear`.
  
      Returns:
          ndarray: Sheared masks.
      """
      pass
  
imports: from abc import ABCMeta, abstractmethod
  import cv2
  import mmcv
  import numpy
  import pycocotools.mask
  import torch
  from mmcv.ops.roi_align import roi_align
label_desc: Use image node_id 12 for calling the BaseInstanceMasks obj's underlying member method code with example usage: obj.shear(out_shape, magnitude, direction, border_value, interpolation) without return types