code: def test_graph_initialized_with_proto_config(self):
      text_config = """
        max_queue_size: 1
        input_stream: 'in'
        output_stream: 'out'
        node {
          calculator: 'PassThroughCalculator'
          input_stream: 'in'
          output_stream: 'out'
        }
      """
      config_proto = calculator_pb2.CalculatorGraphConfig()
      text_format.Parse(text_config, config_proto)
      graph = CalculatorGraph(graph_config=config_proto)
  
      hello_world_packet = packet_creator.create_string("hello world")
      out = []
      graph = CalculatorGraph(graph_config=config_proto)
      graph.observe_output_stream(
          "out", lambda _, packet: out.append(packet)
      )
      graph.start_run()
      graph.add_packet_to_input_stream(
          stream="in", packet=hello_world_packet, timestamp=0
      )
      graph.add_packet_to_input_stream(
          stream="in", packet=hello_world_packet.at(1)
      )
      graph.close()
      self.assertEqual(
          graph.graph_input_stream_add_mode,
          calculator_graph.GraphInputStreamAddMode.WAIT_TILL_NOT_FULL,
      )
      self.assertEqual(graph.max_queue_size, 1)
      self.assertFalse(graph.has_error())
      self.assertLen(out, 2)
      self.assertEqual(out[0].timestamp, 0)
      self.assertEqual(out[1].timestamp, 1)
      self.assertEqual(packet_getter.get_str(out[0]), "hello world")
      self.assertEqual(packet_getter.get_str(out[1]), "hello world")
  
file_path: mediapipe/mediapipe/python/calculator_graph_test.py
imports: from absl.testing import absltest
  from google.protobuf import text_format
  from mediapipe.framework import 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 validated_graph_config
label_desc: Use image node_id 4 for calling the GraphTest obj's underlying member method code with example usage: obj.test_graph_initialized_with_proto_config() without return types