code: def test_ldcp008_graph_in_loading_fits_container_height(dash_dcc):
      lock = Lock()
  
      app = Dash(__name__)
  
      app.layout = html.Div(
          className="outer-container",
          children=[
              html.Div(
                  dcc.Loading(
                      parent_style={"height": "100%"},
                      children=dcc.Graph(
                          style={"height": "100%"},
                          figure={
                              "data": [
                                  {
                                      "x": [1, 2, 3, 4],
                                      "y": [4, 1, 6, 9],
                                      "line": {"shape": "spline"},
                                  }
                              ]
                          },
                      ),
                  ),
              )
          ],
          style={"display": "flex", "height": "300px"},
      )
  
      dash_dcc.start_server(app)
  
      with lock:
          dash_dcc.wait_for_style_to_equal(
              ".js-plotly-plot", "height", "300px"
          )
  
          assert dash_dcc.wait_for_element(".js-plotly-plot").size.get(
              "height"
          ) == dash_dcc.wait_for_element(".outer-container").size.get(
              "height"
          )
  
      assert dash_dcc.get_logs() == []
  
file_path: dash/components/dash-core-components/tests/integration/loading/test_loading_component.py
imports: from multiprocessing import Lock
  from dash import Dash, Input, Output, dcc, html
  from dash.testing import wait
label_desc: Use image node_id 8 for calling a global function with example usage: test_ldcp008_graph_in_loading_fits_container_height(dash_dcc) without return types