code: def test_relations():
      _test_block(
          kls=SectionRelations,
          sid="relations",
          stitle="Relations",
          mappings={
              "correlation": lambda x: "Pearson",
              "df_corr": "corr_pearson",
              "dfp": lambda x: x["granger_causality"][0],
              "dfl": lambda x: x["granger_causality"][1],
              "granger_diff": lambda x: x["granger_causality"][2],
              "granger_critical": lambda x: 0.05,
          },
          plots=dict(
              ScatterMatrix=1,
              GrangerMatrix=1,
              GrangerGraph=1,
          ),
      )
      _test_block(
          kls=SectionRelations,
          sid="relations",
          stitle="Relations",
          mappings={},
          plots=dict(
              GrangerMatrix=0,
              GrangerGraph=0,
          ),
          fnres=mkresult_e,
      )
  
file_path: tslumen/tests/unit/report/html/test_sections.py
imports: import mock
  import pandas
  from tslumen.report.html.sections import SectionSummary, SectionTSFeatures, SectionRelations, SectionTimeSeries, SubTimeSeries, TabTSStatistics, TabTSDistribution, TabTSFeatures, TabTSAutoCorrelation, TabTSLagPlots, TabTSComponents, TabTSSeasonality, TabTSSmoothing, _FTS_MAIN, _FTS_STAT, _FTS_ACF, _PROFILERS_TSFEATURES
  from ..util import mkresult
label_desc: Use image node_id 6 for calling a global function with example usage: test_relations() without return types