<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_entities(ctx, output_path, mtz_file, exclude_namespace, namespace, maltego_entities, append, entity):
 """Converts Maltego entity definition files to Canari python classes. Excludes Maltego built-in entities by default."""

    from canari.commands.generate_entities import generate_entities
    generate_entities(
        ctx.project, output_path, mtz_file, exclude_namespace, namespace, maltego_entities, append, entity)