code: def check_profiler(fn):
      assert isinstance(fn, ProfilingFunction)
      assert (
          fn.is_pseries or fn.is_pframe
      ), f"{fn} neither pseries nor pframe profiler"
      assert is_dataclass(
          fn.config
      ), f"{fn} get_config not returning a 'dataclass'"
  
file_path: tslumen/tests/unit/profile/base.py
imports: from datetime import datetime
  from dataclasses import is_dataclass
  import numpy
  import pandas
  from tslumen.profile.base import ProfileResult, ProfilingFunction
label_desc: Use image node_id 4 for calling a global function with example usage: check_profiler(fn) without return types