code: def is_located_in(points: Tensor, bboxes: Tensor) -> Tensor:
      """Are points located in bboxes.
  
      Args:
          points (Tensor): Points, shape: (m, 2).
          bboxes (Tensor): Bounding boxes, shape: (n, 4).
  
      Return:
          Tensor: Flags indicating if points are located in bboxes,
          shape: (m, n).
      """
      assert points.size(1) == 2
      assert bboxes.size(1) == 4
      return (
          (points[:, 0].unsqueeze(1) > bboxes[:, 0].unsqueeze(0))
          & (points[:, 0].unsqueeze(1) < bboxes[:, 2].unsqueeze(0))
          & (points[:, 1].unsqueeze(1) > bboxes[:, 1].unsqueeze(0))
          & (points[:, 1].unsqueeze(1) < bboxes[:, 3].unsqueeze(0))
      )
  
file_path: mmdetection/mmdet/models/task_modules/assigners/center_region_assigner.py
imports: from typing import Optional, Tuple
  import torch
  from mmengine.structures import InstanceData
  from torch import Tensor
  from mmdet.registry import TASK_UTILS
  from mmdet.utils import ConfigType
  from .assign_result import AssignResult
  from .base_assigner import BaseAssigner
label_desc: Use image node_id 2 for calling a global function with example usage: is_located_in(points, bboxes) and returns: unknown