code: def test_profiler_bad_fun():
      with pytest.raises(AssertionError):
  
          @ProfilingFunction
          def no_fun(data: int) -> str:
              return "error"
  
file_path: tslumen/tests/unit/profile/test_base.py
imports: import pytest
  from typing import Union
  from dataclasses import is_dataclass
  from datetime import datetime
  import pandas
  from tslumen.profile.base import ProfileException, ProfileResult, ProfilingFunction, BundledProfiler, BundledResult, valid_timeseries
label_desc: Use image node_id 11 for calling a global function with example usage: test_profiler_bad_fun() and returns: str