'Creates a ParameterServer.
Args:
cluster: A tf.train.ClusterSpec if the execution is distributed.
None otherwise.
task: A TaskSpec describing the job type and the task index.'

def __init__(self, cluster, task):

    self.cluster = cluster
    self.task = task
