class_docstr: The common base class for the high-level MediaPipe Solution APIs.
  
  The SolutionBase class contains the shared logic among the high-level solution
  APIs including graph initialization, processing image/audio data, and graph
  shutdown.
  
  Example usage:
    with solution_base.SolutionBase(
        binary_graph_path='mediapipe/modules/hand_landmark/hand_landmark_tracking_cpu.binarypb',
        side_inputs={'num_hands': 2}) as hand_tracker:
      # Read an image and convert the BGR image to RGB.
      input_image = cv2.cvtColor(cv2.imread('/tmp/hand.png'), COLOR_BGR2RGB)
      results = hand_tracker.process(input_image)
      print(results.palm_detections)
      print(results.multi_hand_landmarks)
class_docstr_tok: ["The","common","base","class","for","the","high-level","MediaPipe","Solution","APIs",".","The","SolutionBase","class","contains","the","shared","logic","among","the","high-level","solution","APIs","including","graph","initialization",",","processing","image\/audio","data",",","and","graph","shutdown",".","Example","usage",":","with","solution_base.SolutionBase","(","binary_graph_path='mediapipe\/modules\/hand_landmark\/hand_landmark_tracking_cpu.binarypb","'",",","side_inputs=","{","'num_hands","'",":","2","}",")","as","hand_tracker",":","#","Read","an","image","and","convert","the","BGR","image","to","RGB",".","input_image","=","cv2.cvtColor","(","cv2.imread","(","'\/tmp\/hand.png","'",")",",","COLOR_BGR2RGB",")","results","=","hand_tracker.process","(","input_image",")","print","(","results.palm_detections",")","print","(","results.multi_hand_landmarks",")"]
docstr: Resets the graph for another run.
docstr_tok: ["Resets","the","graph","for","another","run","."]
code: def reset(self) -> None:
      """Resets the graph for another run."""
      if self._graph:
          self._graph.close()
          self._graph.start_run(self._input_side_packets)
  
imports: import collections
  import enum
  import os
  from typing import Any, Iterable, List, Mapping, NamedTuple, Optional, Union
  import numpy
  from google.protobuf.internal import containers
  from google.protobuf import descriptor
  from google.protobuf import message
  from mediapipe.calculators.core import constant_side_packet_calculator_pb2
  from mediapipe.calculators.image import image_transformation_calculator_pb2
  from mediapipe.calculators.tensor import tensors_to_detections_calculator_pb2
  from mediapipe.calculators.util import landmarks_smoothing_calculator_pb2
  from mediapipe.calculators.util import logic_calculator_pb2
  from mediapipe.calculators.util import thresholding_calculator_pb2
  from mediapipe.framework import calculator_pb2
  from mediapipe.framework.formats import body_rig_pb2
  from mediapipe.framework.formats import classification_pb2
  from mediapipe.framework.formats import detection_pb2
  from mediapipe.framework.formats import landmark_pb2
  from mediapipe.framework.formats import rect_pb2
  from mediapipe.modules.objectron.calculators import annotation_data_pb2
  from mediapipe.modules.objectron.calculators import lift_2d_frame_annotation_to_3d_calculator_pb2
  from mediapipe.python import packet_creator
  from mediapipe.python import packet_getter
  from mediapipe.python._framework_bindings import calculator_graph
  from mediapipe.python._framework_bindings import image_frame
  from mediapipe.python._framework_bindings import packet
  from mediapipe.python._framework_bindings import resource_util
  from mediapipe.python._framework_bindings import validated_graph_config
label_desc: Use image node_id 4 for calling the SolutionBase obj's underlying member method code with example usage: obj.reset() without return types