<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create(resource, previous=None, migrations_path=None):
 """Create an empty migration for a resource"""

    if migrations_path:
        file_path = migrate.create(resource, previous_version=previous, package=migrations_path)
    else:
        file_path = migrate.create(resource, previous_version=previous)

    click.secho('Created migration file: ' + file_path, fg='green')