code: def return_total_frame_count():
      """
      simply counts the total frames in a given video
      """
      stream = cv2.VideoCapture(return_testvideo_path())
      num_cv = 0
      while True:
          (grabbed, frame) = stream.read()
          if not grabbed:
              logger.debug("Total frames: {}".format(num_cv))
              break
          num_cv += 1
      stream.release()
      return num_cv
  
file_path: vidgear/vidgear/tests/videocapture_tests/test_camgear.py
imports: import os
  import cv2
  import time
  import queue
  import numpy
  import pytest
  import logging
  import platform
  import tempfile
  from vidgear.gears import CamGear
  from vidgear.gears.helper import logger_handler
label_desc: Use image node_id 3 for calling a global function with example usage: return_total_frame_count() and returns: num_cv