docstr: Apply threshold to return boolean tensor.
  
  Parameters
  ----------
  tensor : torch.tensor
      input tensor.
  threshold : float
      Threshold.
  
  Returns
  -------
  torch.tensor
      Boolean tensor.
docstr_tok: ["Apply","threshold","to","return","boolean","tensor",".","Parameters","--","--","--","--","--","tensor",":","torch.tensor","input","tensor",".","threshold",":","float","Threshold",".","Returns","--","--","--","-","torch.tensor","Boolean","tensor","."]
code: def binarize(self, tensor, threshold):
      """
      Apply threshold to return boolean tensor.
  
      Parameters
      ----------
      tensor : torch.tensor
          input tensor.
      threshold : float
          Threshold.
  
      Returns
      -------
      torch.tensor
          Boolean tensor.
  
      """
      return tensor > threshold
  
imports: import os
  import math
  import yaml
  from shapely.geometry import Polygon
  import PIL.Image
  import numpy
  import cv2
  import pyclipper
  import torch
  from .model.constructor import Configurable
label_desc: Use image node_id 13 for calling the DBNet obj's underlying member method code with example usage: obj.binarize(tensor, threshold) and returns: unknown