code: def with_overlap(boxA, boxB):
      xA = max(boxA[2], boxB[2])
      xB = min(boxA[3], boxB[3])
  
      if xB > xA:
          yA = max(boxA[0], boxB[0])
          yB = min(boxA[1], boxB[1])
  
          if yB > yA:
              return 1
  
      return 0
  
file_path: dgl/examples/mxnet/scenegraph/train_freq_prior.py
imports: import argparse
  import json
  import os
  import pickle
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: with_overlap(boxA, boxB) and returns: int, int