docstr: turn logopic into binary matrix logo_mask.
docstr_tok: ["turn","logopic","into","binary","matrix","logo_mask","."]
code: def _generate_logomask(self, logopic, flag):
      """
      turn logopic into binary matrix logo_mask.
      """
      logo_mask = np.where(logopic > flag, self.very_small, 1)
  
      return logo_mask
  
imports: from __future__ import division
  from __future__ import print_function
  from builtins import input
  from builtins import range
  from builtins import object
  from past.utils import old_div
  from abc import ABCMeta
  from abc import abstractmethod
  import numpy
  import cv2
  import os
  import xmltodict
  import pdb
  from future.utils import with_metaclass
label_desc: Use image node_id 15 for calling the ODD_logic obj's underlying member method code with example usage: obj._generate_logomask(logopic, flag) and returns: logo_mask