docstr: Draw a standard border around the label, to give a simple 3D
  effect like the stock wx.grid.Grid labels do.
docstr_tok: ["Draw","a","standard","border","around","the","label",",","to","give","a","simple","3D","effect","like","the","stock","wx.grid.Grid","labels","do","."]
code: def DrawBorder(self, grid, dc, rect):
      """
      Draw a standard border around the label, to give a simple 3D
      effect like the stock wx.grid.Grid labels do.
      """
      top = rect.top
      bottom = rect.bottom
      left = rect.left
      right = rect.right
      old_pen = dc.GetPen()
      dc.SetPen(
          wx.Pen(wx.SystemSettings.GetColour(wx.SYS_COLOUR_3DSHADOW))
      )
      dc.DrawLine(right, top, right, bottom)
      dc.DrawLine(left, top, left, bottom)
      dc.DrawLine(left, bottom, right, bottom)
      dc.SetPen(
          wx.Pen(wx.SystemSettings.GetColour(wx.SYS_COLOUR_3DHIGHLIGHT))
      )
      if top == 0:
          dc.DrawLine(left + 1, top, left + 1, bottom)
          dc.DrawLine(left + 1, top, right, top)
      else:
          dc.DrawLine(left + 1, top + 1, left + 1, bottom)
          dc.DrawLine(left + 1, top + 1, right - 1, top + 1)
      dc.SetPen(old_pen)
  
imports: import wx
  import wx.lib.mixins.gridlabelrenderer
  from cellprofiler.icons import get_builtin_image
label_desc: Use image node_id 1 for calling the GridLabelRenderer obj's underlying member method code with example usage: obj.DrawBorder(grid, dc, rect) without return types