code: def test_dvpc001_prop_check_errors_with_path(dash_duo):
      app = Dash(__name__, eager_loading=True)
  
      app.layout = html.Div(
          [html.Div(id="content"), dcc.Location(id="location")]
      )
  
      @app.callback(
          Output("content", "children"), [Input("location", "pathname")]
      )
      def display_content(pathname):
          if pathname is None or pathname == "/":
              return "Initial state"
          test_case = test_cases[pathname.strip("/")]
          return html.Div(
              id="new-component",
              children=test_case["component"](**test_case["props"]),
          )
  
      dash_duo.start_server(
          app,
          debug=True,
          use_reloader=False,
          use_debugger=True,
          dev_tools_hot_reload=False,
      )
  
      for tc in test_cases:
          route_url = "{}/{}".format(dash_duo.server_url, tc)
          dash_duo.wait_for_page(url=route_url)
  
          fail = test_cases[tc]["fail"]
          logs = test_cases[tc].get("logs", fail)
  
          if fail:
              dash_duo.wait_for_element(
                  ".test-devtools-error-toggle"
              ).click()
              dash_duo.wait_for_element(".dash-fe-error__info")
              dash_duo.percy_snapshot(
                  "devtools validation exception: {}".format(
                      test_cases[tc]["name"]
                  )
              )
          else:
              dash_duo.wait_for_element("#new-component")
              dash_duo.wait_for_no_elements(
                  ".test-devtools-error-toggle"
              )
  
          if logs:
              assert dash_duo.get_logs(), tc
          else:
              assert dash_duo.get_logs() == [], tc
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_dvpc001_prop_check_errors_with_path(dash_duo) and returns: html, str