def METHOD_NAME(
    self,
    batch_list: Optional[List[Batch]] = None,
    batch_request: Optional[Union[BatchRequestBase, dict]] = None,
) -> None:
    arg: Any
    num_supplied_batch_specification_args: int = sum(
        [
            0 if arg is None else 1
            for arg in (
                batch_list,
                batch_request,
            )
        ]
    )
    if num_supplied_batch_specification_args > 1:
        raise gx_exceptions.ProfilerConfigurationError(
            f'Please pass at most one of "batch_list" and "batch_request" arguments (you passed {num_supplied_batch_specification_args} arguments).'
        )
    if batch_list is None:
        self.batch_request = batch_request
    else:
        self.batch_list = batch_list