code: def test_profiler_either():
      _test_profiler(
          fun_either,
          pd.Series(dtype=float),
          True,
          True,
          dict(
              name="fun_either",
              scope="series",
              target="",
              result="i am a Series",
              success=True,
          ),
      )
      _test_profiler(
          fun_either,
          pd.DataFrame(),
          True,
          True,
          dict(
              name="fun_either",
              scope="frame",
              target="",
              result="i am a DataFrame",
              success=True,
          ),
      )
  
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 10 for calling a global function with example usage: test_profiler_either() without return types