code: def test_tagr001_graph_does_not_resize_in_tabs(dash_dcc, is_eager):
      app = Dash(__name__, eager_loading=is_eager)
      app.layout = html.Div(
          [
              html.H1("Dash Tabs component demo"),
              dcc.Tabs(
                  id="tabs-example",
                  value="tab-1-example",
                  children=[
                      dcc.Tab(
                          label="Tab One",
                          value="tab-1-example",
                          id="tab-1",
                      ),
                      dcc.Tab(
                          label="Tab Two",
                          value="tab-2-example",
                          id="tab-2",
                      ),
                      dcc.Tab(
                          label="Tab Three",
                          value="tab-3-example",
                          id="tab-3",
                          disabled=True,
                          disabled_className="disabled-tab",
                      ),
                  ],
              ),
              html.Div(id="tabs-content-example"),
          ]
      )
  
      @app.callback(
          Output("tabs-content-example", "children"),
          [Input("tabs-example", "value")],
      )
      def render_content(tab):
          if tab == "tab-1-example":
              return html.Div(
                  [
                      html.H3("Tab content 1"),
                      dcc.Graph(
                          id="graph-1-tabs",
                          figure={
                              "data": [
                                  {
                                      "x": [1, 2, 3],
                                      "y": [3, 1, 2],
                                      "type": "bar",
                                  }
                              ]
                          },
                      ),
                  ]
              )
          elif tab == "tab-2-example":
              return html.Div(
                  [
                      html.H3("Tab content 2"),
                      dcc.Graph(
                          id="graph-2-tabs",
                          figure={
                              "data": [
                                  {
                                      "x": [1, 2, 3],
                                      "y": [5, 10, 6],
                                      "type": "bar",
                                  }
                              ]
                          },
                      ),
                  ]
              )
  
      dash_dcc.start_server(app)
  
      tab_one = dash_dcc.wait_for_element("#tab-1")
      tab_two = dash_dcc.wait_for_element("#tab-2")
  
      # wait for disabled tab with custom className
      dash_dcc.wait_for_element("#tab-3.disabled-tab")
  
      WebDriverWait(dash_dcc.driver, 10).until(
          EC.element_to_be_clickable((By.ID, "tab-2"))
      )
  
      # wait for Graph to be ready
      WebDriverWait(dash_dcc.driver, 10).until(
          EC.visibility_of_element_located(
              (By.CSS_SELECTOR, "#graph-1-tabs .main-svg")
          )
      )
  
      is_eager = "eager" if is_eager else "lazy"
  
      dash_dcc.percy_snapshot(
          f"Tabs with Graph - initial (graph should not resize) ({is_eager})"
      )
      tab_two.click()
  
      # wait for Graph to be ready
      WebDriverWait(dash_dcc.driver, 10).until(
          EC.visibility_of_element_located(
              (By.CSS_SELECTOR, "#graph-2-tabs .main-svg")
          )
      )
  
      dash_dcc.percy_snapshot(
          f"Tabs with Graph - clicked tab 2 (graph should not resize) ({is_eager})"
      )
  
      WebDriverWait(dash_dcc.driver, 10).until(
          EC.element_to_be_clickable((By.ID, "tab-1"))
      )
  
      tab_one.click()
  
      # wait for Graph to be loaded after clicking
      WebDriverWait(dash_dcc.driver, 10).until(
          EC.visibility_of_element_located(
              (By.CSS_SELECTOR, "#graph-1-tabs .main-svg")
          )
      )
  
      dash_dcc.percy_snapshot(
          f"Tabs with Graph - clicked tab 1 (graph should not resize) ({is_eager})"
      )
  
      assert dash_dcc.get_logs() == []
  
file_path: dash/components/dash-core-components/tests/integration/tab/test_tabs_with_graphs.py
imports: import werkzeug
  from dash import Dash, Input, Output, dcc, html
  from dash.exceptions import PreventUpdate
  import json
  import os
  import pytest
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions
  from selenium.webdriver.support.ui import WebDriverWait
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: test_tagr001_graph_does_not_resize_in_tabs(dash_dcc, is_eager) and returns: html, html