def METHOD_NAME(self):
    """
    Returns: an instance of a condorpy job or condorpy workflow with scheduler, cluster_id, and remote_id attributes set
    """  # noqa: E501
    METHOD_NAME = self._condor_object
    METHOD_NAME._cluster_id = self.cluster_id
    METHOD_NAME._cwd = self.workspace
    if self.scheduler:
        METHOD_NAME.set_scheduler(
            host=self.scheduler.host,
            port=self.scheduler.port,
            username=self.scheduler.username,
            password=self.scheduler.password,
            private_key=self.scheduler.private_key_path,
            private_key_pass=self.scheduler.private_key_pass,
        )
        self.remote_id = self.remote_id or METHOD_NAME._remote_id
        METHOD_NAME._remote_id = self.remote_id
    return METHOD_NAME