def METHOD_NAME(dbname=None, user=None, password=None, host=None):
    with psycopg2.connect(dbname=dbname, user=user, password=password, host=host) as conn:
        with conn.cursor() as curs:
            columns = ("actor_id", "population")
            table_name = "Population"
            qry = f'''
            SELECT {', '.join(columns)}
            FROM "{table_name}"
            WHERE (actor_id, year) IN (
                SELECT actor_id, MAX(year) AS max_year
                FROM "{table_name}"
                GROUP BY actor_id
            )
            '''
            curs.execute(qry)
            records = curs.fetchall()
            return dict(records)