(self, job_id, cpn_name, role, party_id, limits=None)
Parameters
        ----------
        job_id: str
        cpn_name: str
        role: str
        party_id: int
        limits: int, None, default None. Maximum number of lines returned, including header. If None, return all lines.

        Returns
        -------
        dict
        single output example:
            {
                data: [],
                meta: []

            }
        multiple output example:
            {
            train_data: {
                data: [],
                meta: []
                },
            validate_data: {
                data: [],
                meta: []
                }
            test_data: {
                data: [],
                meta: []
                }
            }
def get_output_data(self, job_id, cpn_name, role, party_id, limits=None):
        """

        Parameters
        ----------
        job_id: str
        cpn_name: str
        role: str
        party_id: int
        limits: int, None, default None. Maximum number of lines returned, including header. If None, return all lines.

        Returns
        -------
        dict
        single output example:
            {
                data: [],
                meta: []

            }
        multiple output example:
            {
            train_data: {
                data: [],
                meta: []
                },
            validate_data: {
                data: [],
                meta: []
                }
            test_data: {
                data: [],
                meta: []
                }
            }
        """
        party_id = str(party_id)
        with tempfile.TemporaryDirectory() as job_dir:
            result = self.client.component.output_data(job_id=job_id, role=role, output_path=job_dir,
                                                       party_id=party_id, component_name=cpn_name)
            output_dir = result["directory"]
            n = 0
            for file in os.listdir(output_dir):
                if file.endswith("csv"):
                    n += 1

            if n > 0:
                data_dict = {}
                for data_name in [IODataType.SINGLE, IODataType.TRAIN, IODataType.VALIDATE, IODataType.TEST]:
                    curr_data_dict = JobInvoker.create_data_meta_dict(data_name, output_dir, limits)
                    if curr_data_dict is not None:
                        data_dict[data_name] = curr_data_dict
            # no output data obtained
            else:
                raise ValueError(f"No output data found in directory{output_dir}")
            if len(data_dict) == 1:
                return list(data_dict.values())[0]
            return data_dict
def get_output_data ( self , job_id , cpn_name , role , party_id , limits = None ) : party_id = str ( party_id ) with tempfile . TemporaryDirectory ( ) as job_dir : result = self . client . component . output_data ( job_id = job_id , role = role , output_path = job_dir , party_id = party_id , component_name = cpn_name ) output_dir = result [ "directory" ] n = 0 for file in os . listdir ( output_dir ) : if file . endswith ( "csv" ) : n += 1 if n > 0 : data_dict = { } for data_name in [ IODataType . SINGLE , IODataType . TRAIN , IODataType . VALIDATE , IODataType . TEST ] : curr_data_dict = JobInvoker . create_data_meta_dict ( data_name , output_dir , limits ) if curr_data_dict is not None : data_dict [ data_name ] = curr_data_dict # no output data obtained else : raise ValueError ( f"No output data found in directory{output_dir}" ) if len ( data_dict ) == 1 : return list ( data_dict . values ( ) ) [ 0 ] return data_dict