<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send(self, config, log, obs_id, beam_id):
 """ Send the pulsar data to the ftp server Args: config (dict):
 Dictionary of settings log (logging.Logger):
 Python logging object obs_id: observation id beam_id: beam id """

        log.info('Starting Pulsar Data Transfer...')
        socket = self._ftp.transfercmd('STOR {0}_{1}'.format(obs_id, beam_id))
        socket.send(json.dumps(config).encode())
        socket.send(bytearray(1000 * 1000))

        # Overwrites the metadata name in the config dict
        # and re-sends the data to the receiver.
        config['metadata']['name'] = 'candidate_two'
        socket.send(json.dumps(config).encode())
        socket.send(bytearray(1000 * 1000))
        socket.close()
        log.info('Pulsar Data Transfer Completed...')