code: def disable_logging(lines, min_level_value, max_level_value):
      
      output = ''
      while lines:
          line = lines[0]
          ret = RE_LOGGING_START.match(line)
          if not ret:
              # no logging statement here, so just leave the line as-is and keep going
              output += line
              lines = lines[1:]
          else:
              # a logging call has started: find all the lines it includes and those it does not
              logging_lines, remaining_lines = split_call(lines)
              lines = remaining_lines
              logging_stmt = ''.join(logging_lines)
  
              # replace the logging statement if its level falls b/w min and max
              if not check_level(logging_stmt, False, min_level_value, max_level_value):
                  output += logging_stmt
              else:
                  # comment out this logging statement and replace it with pass
                  prefix_ws = ret.group(1)
                  pass_stmt = prefix_ws + PASS_LINE_CONTENTS
                  commented_out_logging_lines = comment_lines(logging_lines)
                  new_lines = pass_stmt + commented_out_logging_lines
                  logging.info('replacing:\n%s\nwith this:\n%s' % (logging_stmt.rstrip(), new_lines.rstrip()))
                  output += new_lines
      return output
docs: Disables logging statements in these lines whose logging level falls
      between the specified minimum and maximum levels.