code: def test_issue864():
      def random_list(n):
          return [random.randrange(0, 100) for _ in range(0, n)]
  
      df = pd.DataFrame({"a": random_list(30)})
  
      profile = ProfileReport(df)
  
      def test_with_value(n_extreme_obs):
          """Generate HTML and validate the tabs contain the proper tab titles."""
          profile.config.n_extreme_obs = n_extreme_obs
          profile.invalidate_cache()
  
          reg_min = f"*<a href=* aria-controls=* role=tab data-toggle=tab>Minimum {n_extreme_obs} values</a>*"
          reg_max = f"*<a href=* aria-controls=* role=tab data-toggle=tab>Maximum {n_extreme_obs} values</a>*"
  
          html = profile.to_html()
  
          assert fnmatch.fnmatch(html, reg_min)
          assert fnmatch.fnmatch(html, reg_max)
  
      test_with_value(5)
      test_with_value(10)
      test_with_value(12)
  
imports: import fnmatch
  import random
  import pandas
  from ydata_profiling import ProfileReport
label_desc: Use image node_id 1 for calling a global function with example usage: test_issue864() and returns: unknown