code: def test_tagr002_tabs_render_without_selected(dash_dcc, is_eager):
      app = Dash(__name__, eager_loading=is_eager)
  
      menu = html.Div(
          [html.Div("one", id="one"), html.Div("two", id="two")]
      )
  
      tabs_one = html.Div(
          [
              dcc.Tabs(
                  [
                      dcc.Tab(
                          dcc.Graph(id="graph-one"), label="tab-one-one"
                      )
                  ]
              )
          ],
          id="tabs-one",
          style={"display": "none"},
      )
  
      tabs_two = html.Div(
          [
              dcc.Tabs(
                  [
                      dcc.Tab(
                          dcc.Graph(id="graph-two"), label="tab-two-one"
                      )
                  ]
              )
          ],
          id="tabs-two",
          style={"display": "none"},
      )
  
      app.layout = html.Div([menu, tabs_one, tabs_two])
  
      for i in ("one", "two"):
  
          @app.callback(
              Output(f"tabs-{i}", "style"), [Input(i, "n_clicks")]
          )
          def on_click_update_tabs(n_clicks):
              if n_clicks is None:
                  raise PreventUpdate
  
              if n_clicks % 2 == 1:
                  return {"display": "block"}
              return {"display": "none"}
  
          @app.callback(
              Output(f"graph-{i}", "figure"), [Input(i, "n_clicks")]
          )
          def on_click_update_graph(n_clicks):
              if n_clicks is None:
                  raise PreventUpdate
  
              return {
                  "data": [{"x": [1, 2, 3, 4], "y": [4, 3, 2, 1]}],
                  "layout": {"width": 700, "height": 450},
              }
  
      dash_dcc.start_server(app)
  
      button_one = dash_dcc.wait_for_element("#one")
      button_two = dash_dcc.wait_for_element("#two")
  
      button_one.click()
  
      # wait for tabs to be loaded after clicking
      WebDriverWait(dash_dcc.driver, 10).until(
          EC.visibility_of_element_located(
              (By.CSS_SELECTOR, "#graph-one .main-svg")
          )
      )
  
      is_eager = "eager" if is_eager else "lazy"
  
      time.sleep(1)
      dash_dcc.percy_snapshot(f"Tabs-1 rendered ({is_eager})")
  
      button_two.click()
  
      # wait for tabs to be loaded after clicking
      WebDriverWait(dash_dcc.driver, 10).until(
          EC.visibility_of_element_located(
              (By.CSS_SELECTOR, "#graph-two .main-svg")
          )
      )
  
      time.sleep(1)
      dash_dcc.percy_snapshot(f"Tabs-2 rendered ({is_eager})")
  
      # do some extra tests while we're here
      # and have access to Graph and plotly.js
      check_graph_config_shape(dash_dcc)
  
      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 2 for calling a global function with example usage: test_tagr002_tabs_render_without_selected(dash_dcc, is_eager) and returns: dict, dict, dict