code: def data(self, filepaths):
      # Skip tests if cmdstanpy not installed
      cmdstanpy = importorskip("cmdstanpy")
      CmdStanModel = (
          cmdstanpy.CmdStanModel
      )  # pylint: disable=invalid-name
      CmdStanMCMC = (
          cmdstanpy.CmdStanMCMC
      )  # pylint: disable=invalid-name
      RunSet = cmdstanpy.stanfit.RunSet  # pylint: disable=invalid-name
      CmdStanArgs = (
          cmdstanpy.model.CmdStanArgs
      )  # pylint: disable=invalid-name
      SamplerArgs = (
          cmdstanpy.model.SamplerArgs
      )  # pylint: disable=invalid-name
  
      class Data:
          args = CmdStanArgs(
              "dummy.stan",
              "dummy.exe",
              list(range(1, 5)),
              method_args=SamplerArgs(iter_sampling=100),
          )
          runset_obj = RunSet(args)
          runset_obj._csv_files = filepaths[
              "nowarmup"
          ]  # pylint: disable=protected-access
          obj = CmdStanMCMC(runset_obj)
          obj._assemble_draws()  # pylint: disable=protected-access
  
          args_warmup = CmdStanArgs(
              "dummy.stan",
              "dummy.exe",
              list(range(1, 5)),
              method_args=SamplerArgs(
                  iter_sampling=100, iter_warmup=500, save_warmup=True
              ),
          )
          runset_obj_warmup = RunSet(args_warmup)
          runset_obj_warmup._csv_files = filepaths[
              "warmup"
          ]  # pylint: disable=protected-access
          obj_warmup = CmdStanMCMC(runset_obj_warmup)
          obj_warmup._assemble_draws()  # pylint: disable=protected-access
  
          _model_code = """model { real y; } generated quantities { int eta; int theta[N]; }"""
          _tmp_dir = tempfile.TemporaryDirectory(prefix="arviz_tests_")
          _stan_file = os.path.join(
              _tmp_dir.name, "stan_model_test.stan"
          )
          with open(_stan_file, "w", encoding="utf8") as f:
              f.write(_model_code)
          model = CmdStanModel(stan_file=_stan_file, compile=False)
  
      return Data
  
imports: import os
  import sys
  import tempfile
  from glob import glob
  import numpy
  import pytest
  from ...None import from_cmdstanpy
  from ..helpers import chains, check_multiple_attrs, draws, eight_schools_params, importorskip, load_cached_models, pystan_version
label_desc: Use image node_id 3 for calling the TestDataCmdStanPy obj's underlying member method code with example usage: obj.data(filepaths) and returns: Data