def METHOD_NAME(self, install_types, installed_item_names=None, unattended_installs=None, machine_tag_id=None):
    body = {"install_types": install_types}
    if installed_item_names:
        body["installed_item_names"] = installed_item_names
    if unattended_installs is not None:
        body["unattended_installs"] = unattended_installs
    if machine_tag_id:
        body["filters"] = {"inventory": [{"tag_ids": [machine_tag_id]}]}
    ps = ProbeSource.objects.create(
        model="MunkiInstallProbe",
        name="munki install probe",
        body=body
    )
    p = ps.load()
    return ps, p