code: def test_shortest_path(network_data, unittest):
      import dtale.views as views
  
      df, _ = views.format_data(network_data)
      with build_app(url=URL).test_client() as c:
          build_data_inst({c.port: df})
  
          resp = c.get(
              "/dtale/shortest-path/{}".format(c.port),
              query_string={
                  "to": "to",
                  "from": "from",
                  "weight": "weight",
                  "start": "b",
                  "end": "k",
              },
          )
          unittest.assertEqual(resp.json["data"], ["b", "f", "j", "k"])
  
imports: import pytest
  from dtale.app import build_app
  from tests.dtale import build_data_inst
  from tests.dtale.test_views import URL
label_desc: Use image node_id 2 for calling a global function with example usage: test_shortest_path(network_data, unittest) without return types