(dataset_name)
return lambda dataset_class: decorator(dataset_class, dataset_name)
Decorator for registering a dataset.
Decorator for registering a dataset.
Decorator for registering a dataset .
def register(dataset_name):
  """Decorator for registering a dataset."""

  def decorator(decorator_dataset_class, decorator_dataset_name):
    _DATASETS[decorator_dataset_name] = decorator_dataset_class
    return decorator_dataset_class

  return lambda dataset_class: decorator(dataset_class, dataset_name)
def register ( dataset_name ) : def decorator ( decorator_dataset_class , decorator_dataset_name ) : _DATASETS [ decorator_dataset_name ] = decorator_dataset_class return decorator_dataset_class return lambda dataset_class : decorator ( dataset_class , dataset_name )