parameters: (store, prefix: str, size: int)
return_statement: return data_arr
docstring: r"""
      Given a store and a prefix, the method goes through the array of keys
      of the following format: ``{prefix}{idx}``, where idx is in a range
      from 0 to size, and tries to retrieve the data.
  
      Usage
  
      ::
  
       values = get_all(store, 'torchelastic/data', 3)
       value1 = values[0] # retrieves the data for key torchelastic/data0
       value2 = values[1] # retrieves the data for key torchelastic/data1
       value3 = values[2] # retrieves the data for key torchelastic/data2
docstring_summary: r"""
      Given a store and a prefix, the method goes through the array of keys
      of the following format: ``{prefix}{idx}``, where idx is in a range
      from 0 to size, and tries to retrieve the data.
docstring_tokens: r Given a store and a prefix the method goes through the array of keys of the following format : { prefix } { idx } where idx is in a range from 0 to size and tries to retrieve the data .
function: def get_all(store, prefix: str, size: int):
      r"""
      Given a store and a prefix, the method goes through the array of keys
      of the following format: ``{prefix}{idx}``, where idx is in a range
      from 0 to size, and tries to retrieve the data.
  
      Usage
  
      ::
  
       values = get_all(store, 'torchelastic/data', 3)
       value1 = values[0] # retrieves the data for key torchelastic/data0
       value2 = values[1] # retrieves the data for key torchelastic/data1
       value3 = values[2] # retrieves the data for key torchelastic/data2
  
      """
      data_arr = []
      for idx in range(size):
          data = store.get(f"{prefix}{idx}")
          data_arr.append(data)
      return data_arr
function_tokens: def get_all ( store , prefix : str , size : int ) : data_arr = [ ] for idx in range ( size ) : data = store . get ( f"{prefix}{idx}" ) data_arr . append ( data ) return data_arr