use slugify;
use crate;
/// The function `build_object_id_from_pieces` takes in metadata, an identifier, and a raw type, and
/// returns a formatted string. This is a convenience function for building object IDs so they all
/// follow the same format.
///
/// Arguments:
///
/// * `metadata`: A reference to a `RawMetadata` object.
/// * `identifier`: A string representing the identifier of the object.
/// * `raw_type`: The `raw_type` parameter is of type `ObjectType`.
///
/// Returns:
///
/// a string.