code: def test_register_plugin_entry_point():
      class test_stream(Stream):
          pass
  
      entry_point = MockEntryPoint("test_node", test_stream)
      Stream.register_plugin_entry_point(entry_point)
  
      assert Stream.test_node.__name__ == "stub"
  
      Stream().test_node()
  
      assert Stream.test_node.__name__ == "test_stream"
  
file_path: streamz/streamz/tests/test_plugins.py
imports: import inspect
  import pytest
  from streamz import Source, Stream
label_desc: Use image node_id 1 for calling a global function with example usage: test_register_plugin_entry_point() without return types