def get_parent_lookup_kwargs(parent_object):
    if parent_object is None:
        return dict(
            parent_type__isnull=True,
            parent_id=0
        )
    elif isinstance(parent_object, models.Model):
        return dict(
            parent_type=ContentType.objects.get_for_model(parent_object),
            parent_id=parent_object.pk
        )
    else:
        raise ValueError("parent_object is not a model!")
Install docker. Pull images. Create datasets. Start master and workers.
dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/models/managers.py/get_parent_lookup_kwargs--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/cloudsuite_in_memory_analytics_benchmark.py/Prepare