hunk.code_window: from streamlit.protobuf.BackMsg_pb2 import WidgetStates
   from streamlit.widgets import Widgets
   def _create_widget(id, states):
       widget = WidgetState()
       widget.id = id
       states.widgets.append(widget)
       return states.widgets[-1]
   class ScriptEventQueueTest(unittest.TestCase):
  
hunk.labels: keep keep keep keep keep replace replace replace keep keep keep keep
hunk.after_edit:     states.widgets.add().id = id
  
hunk.file_path: lib/tests/streamlit/ScriptRunner_test.py
hunk.type: replace
file: /**
   * @license
   * Copyright 2018 Streamlit Inc. All rights reserved.
   */
  
  import React from 'react'
  import {Map as ImmutableMap} from 'immutable'
  
  interface Props {
    width: number;
    element: ImmutableMap<string, any>;
  }
  
  class Video extends React.PureComponent<Props> {
    public render(): React.ReactNode {
      const {element, width} = this.props
      const dataUrl = 'data:' + element.get('format') + ';base64,' + element.get('data')
      return <video controls src={dataUrl} className="stVideo" style={{ width }} />
    }
  }
  
  export default Video
  