@staticmethod
def get_data_for_estimate(task_declaration):
    dataset = task_declaration.dataset
    ipfs_dir = Directory(dataset.train_dir_ipfs)
    (dirs, files) = ipfs_dir.ls()
    return {'chunk_ipfs': dirs[0].multihash, 'model_code_ipfs': task_declaration.train_model.code_ipfs}
@staticmethod
def get_data_for_estimate(task_declaration):
    dataset = task_declaration.dataset
    ipfs_dir = Directory(dataset.train_dir_ipfs)
    (dirs, files) = ipfs_dir.ls()
    return {'chunk_ipfs': dirs[0].multihash, 'model_code_ipfs': task_declaration.train_model.code_ipfs}