<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def geocode(self, address_data, **kwargs):
 """ Returns geocoding data for either a list of addresses or a single address represented as a string. Provides a single point of access for end users. """

        if isinstance(address_data, list):
            return self.batch_geocode(address_data, **kwargs)

        return self.geocode_address(address_data, **kwargs)