<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def resolve_remote(self):
        '''If target is of remote type, resolve it'''
        for idx, target in enumerate(self._targets):
            if isinstance(target, remote):
                resolved = target.resolve()
                if isinstance(resolved, str):
                    resolved = interpolate(resolved, env.sos_dict.dict())
                self._targets[idx] = file_target(resolved).set(**target._dict)
        return self