def METHOD_NAME(df: pd.DataFrame) -> DataLoader:
    """Create dataloader object with input data."""
    def _create_dataset(encoded_data: dict) -> TensorDataset:
        """Create dataset object with input data."""
        input_ids = encoded_data["input_ids"]
        attention_masks = encoded_data["attention_mask"]
        return TensorDataset(input_ids, attention_masks)
    # Load tokenizer.
    tokenizer = DistilBertTokenizer.from_pretrained(PRETRAINED_WEIGHTS_NAME)
    # Tokenize data.
    encoded_data = tokenizer.batch_encode_plus(
        df.Review.values,
        add_special_tokens=Config.add_special_tokens,
        return_attention_mask=Config.return_attention_mask,
        pad_to_max_length=Config.pad_to_max_length,
        max_length=Config.seq_length,
        return_tensors=Config.return_tensors,
    )
    # Create dataset object.
    dataset = _create_dataset(encoded_data)
    # Create and return dataloader object.
    return DataLoader(dataset, batch_size=Config.batch_size)