<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def schema_import(conn, dbpath):
 """Import profiles from another database. This does not overwrite existing profiles in the target database. Profiles in the source database that share names with those in the target database are ignored. :param conn: A connection to an SQLite3 database into which to copy profiles. :param dbpath: The filesystem path to the source SQLite3 database. """

    conn.execute(
        "ATTACH DATABASE ? AS source", (str(dbpath),))
    conn.execute(
        "INSERT OR IGNORE INTO profiles (name, data)"
        " SELECT name, data FROM source.profiles"
        " WHERE data IS NOT NULL")
    conn.commit()  # need to commit before detaching the other db
    conn.execute(
        "DETACH DATABASE source")