code: def create_operations(ctx=None, **kwargs):
      
      if ctx is None:
          ctx = create_migration_ctx(**kwargs)
      operations = Operations(ctx)
      operations.has_table = has_table
      return operations
docs: Create an alembic operations object.