fn convert_function(
function: FunctionIR,
struct_types: &[StructTypeMetadata],
enum_types: &[EnumTypeMetadata],
contract_types: &[String],
has_explicit_on_nep17_payment: bool,
type_aliases: &HashMap<String, String>,
) -> FunctionMetadata