code: def find_inside_bboxes(
      bboxes: Tensor, img_h: int, img_w: int
  ) -> Tensor:
      """Find bboxes as long as a part of bboxes is inside the image.
  
      Args:
          bboxes (Tensor): Shape (N, 4).
          img_h (int): Image height.
          img_w (int): Image width.
  
      Returns:
          Tensor: Index of the remaining bboxes.
      """
      inside_inds = (
          (bboxes[:, 0] < img_w)
          & (bboxes[:, 2] > 0)
          & (bboxes[:, 1] < img_h)
          & (bboxes[:, 3] > 0)
      )
      return inside_inds
  
imports: from typing import List, Optional, Sequence, Tuple, Union
  import numpy
  import torch
  from torch import Tensor
  from mmdet.structures.bbox import BaseBoxes
label_desc: Use image node_id 1 for calling a global function with example usage: find_inside_bboxes(bboxes, img_h, img_w) and returns: inside_inds