code: def test_modular_present(tdf):
      profile = ProfileReport(
          tdf,
          title="Modular test",
          duplicates={"head": 10},
          samples={"head": 10, "tail": 10},
          interactions={"targets": ["mass (g)"], "continuous": True},
          correlations={
              "pearson": {"calculate": True},
              "spearman": {"calculate": True},
              "kendall": {"calculate": True},
              "phi_k": {"calculate": True},
              "cramers": {"calculate": True},
          },
          missing_diagrams={
              "matrix": True,
              "bar": True,
              "heatmap": True,
          },
          pool_size=1,
      )
  
      html = profile.to_html()
      assert "Correlations</h1>" in html
      assert "Duplicate rows</h1>" in html
      assert "Sample</h1>" in html
      assert "Missing values</h1>" in html
  
file_path: ydata-profiling/tests/unit/test_modular.py
imports: from dataclasses import asdict
  import numpy
  import pandas
  import pytest
  from ydata_profiling import ProfileReport
label_desc: Use image node_id 4 for calling a global function with example usage: test_modular_present(tdf) without return types