def METHOD_NAME(params):
    """
    Create one customized disk with related attributes
    :param params: dict wrapped with params
    :return: return disk device
    """
    type_name = params.get("type_name")
    device_target = params.get("target_dev")
    disk_device = params.get("device_type")
    device_bus = params.get("target_bus")
    device_format = params.get("target_format")
    source_file = params.get("virt_disk_device_source")
    source_dict = {}
    if source_file:
        libvirt.create_local_disk("file", source_file, 1, device_format)
        cleanup_files.append(source_file)
        source_dict.update({"file": source_file})
    disk_src_dict = {"attrs": source_dict}
    customized_disk = libvirt_disk.create_primitive_disk_xml(
        type_name, disk_device,
        device_target, device_bus,
        device_format, disk_src_dict, None)
    LOG.debug("create customized xml: %s", customized_disk)
    return customized_disk