def get_cached_qcolor(color):
    qcolor = color._tkdata
    if not isinstance(qcolor, QColor):
        qcolor = color._tkdata = QColor_from_Color(color)
    return qcolor
Create a test instance.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/q_resource_helpers.py/get_cached_qcolor--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/test_quota.py/QuotaIntegrationTestCase._create_instance