<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wgs84_to_pixel(lng, lat, transform, utm_epsg=None, truncate=True):
 """ Convert WGS84 coordinates to pixel image coordinates given transform and UTM CRS. If no CRS is given it will be calculated it automatically. :param lng: longitude of point :type lng: float :param lat: latitude of point :type lat: float :param transform: georeferencing transform of the image, e.g. `(x_upper_left, res_x, 0, y_upper_left, 0, -res_y)` :type transform: tuple or list :param utm_epsg: UTM coordinate reference system enum constants :type utm_epsg: constants.CRS or None :param truncate: Whether to truncate pixel coordinates. Default is ``True`` :type truncate: bool :return: row and column pixel image coordinates :rtype: float, float or int, int """

    east, north = wgs84_to_utm(lng, lat, utm_epsg)
    row, column = utm_to_pixel(east, north, transform, truncate=truncate)
    return row, column