code: def check_polygon_bbox(polygon, bbox):
      min_lon, min_lat, max_lon, max_lat = bbox
      eps = 1e-3
      for linear_ring in polygon["coordinates"]:
          for coordinate in linear_ring:
              if not (
                  min_lon - eps <= coordinate[0] <= max_lon + eps
                  and min_lat - eps <= coordinate[1] <= max_lat + eps
              ):
                  return False
      return True
  
file_path: geojson/tests/test_utils.py
imports: import random
  import unittest
  import geojson
  from geojson.utils import generate_random, map_geometries
label_desc: Use image node_id 2 for calling a global function with example usage: check_polygon_bbox(polygon, bbox) and returns: True, False