code: def test_loca001_callbacks(dash_dcc):
      app = Dash(__name__)
      app.layout = html.Div(
          [
              dcc.Location(id="location", refresh=False),
              html.A("Anchor Link 1", href="#div"),
              html.Div(id="div"),
          ]
      )
  
      @app.callback(
          Output("div", "children"), [Input("location", "pathname")]
      )
      def update_path(path):
          return path
  
      dash_dcc.start_server(app)
  
      dash_dcc.wait_for_text_to_equal("#div", "/")
  
      assert dash_dcc.get_logs() == []
  
imports: import pytest
  from dash import Dash, Input, Output, State, dcc, html
  from dash.testing.wait import until
label_desc: Use image node_id 1 for calling a global function with example usage: test_loca001_callbacks(dash_dcc) and returns: path