<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_imagery(cls, lat, lon, date=None, dim=None, cloud_score=False):
 """ Returns satellite image Args: lat: latitude float lon: longitude float date: date instance of available date from `get_assets` dim: width and height of image in degrees as float cloud_score: boolean to calculate the percentage of the image covered by clouds Returns: json """

        instance = cls('planetary/earth/imagery')

        filters = {
            'lat': lat,
            'lon': lon,
            'date': date,
            'dim': dim,
            'cloud_score': cloud_score
        }

        return instance.get_resource(**filters)