parameters: (self, mini_dataset, inner_batch_size, inner_iters, replacement)
docstring: Generate inner-loop mini-batches for the task.
docstring_summary: Generate inner-loop mini-batches for the task.
docstring_tokens: Generate inner - loop mini - batches for the task .
function: def _mini_batches(self, mini_dataset, inner_batch_size, inner_iters, replacement):
          """
          Generate inner-loop mini-batches for the task.
          """
          if self.tail_shots is None:
              for value in _mini_batches(mini_dataset, inner_batch_size, inner_iters, replacement):
                  yield value
              return
          train, tail = _split_train_test(mini_dataset, test_shots=self.tail_shots)
          for batch in _mini_batches(train, inner_batch_size, inner_iters - 1, replacement):
              yield batch
          yield tail
function_tokens: def _mini_batches ( self , mini_dataset , inner_batch_size , inner_iters , replacement ) : if self . tail_shots is None : for value in _mini_batches ( mini_dataset , inner_batch_size , inner_iters , replacement ) : yield value return train , tail = _split_train_test ( mini_dataset , test_shots = self . tail_shots ) for batch in _mini_batches ( train , inner_batch_size , inner_iters - 1 , replacement ) : yield batch yield tail