def METHOD_NAME(
    self,
    domain=None,
    owner_id=None,
    is_copy=False,
):
    case_json = {}
    if is_copy:
        case_json[CaseCopier.COMMCARE_CASE_COPY_PROPERTY_NAME] = 'case_id'
    case = CommCareCase(
        case_id=uuid.uuid4().hex,
        domain=domain,
        owner_id=owner_id,
        type='case_type',
        case_json=case_json,
    )
    case_search_adapter.index(case, refresh=True)
    return case