parameters: (self, sess)
return_statement: return True, None
docstring: Tries to run _local_init_op, if not None, and is ready for local init.
  
      Args:
        sess: A `Session`.
  
      Returns:
        A tuple (is_successful, msg), where is_successful is True if
        _local_init_op is None, or we ran _local_init_op, and False otherwise;
        and msg is a `String` with the reason why the model was not ready to run
        local init.
docstring_summary: Tries to run _local_init_op, if not None, and is ready for local init.
docstring_tokens: Tries to run _local_init_op if not None and is ready for local init .
function: def _try_run_local_init_op(self, sess):
      """Tries to run _local_init_op, if not None, and is ready for local init.
  
      Args:
        sess: A `Session`.
  
      Returns:
        A tuple (is_successful, msg), where is_successful is True if
        _local_init_op is None, or we ran _local_init_op, and False otherwise;
        and msg is a `String` with the reason why the model was not ready to run
        local init.
      """
      if self._local_init_op is not None:
        is_ready_for_local_init, msg = self._model_ready_for_local_init(sess)
        if is_ready_for_local_init:
          sess.run(self._local_init_op)
          return True, None
        else:
          return False, msg
      return True, None
function_tokens: def _try_run_local_init_op ( self , sess ) : if self . _local_init_op is not None : is_ready_for_local_init , msg = self . _model_ready_for_local_init ( sess ) if is_ready_for_local_init : sess . run ( self . _local_init_op ) return True , None else : return False , msg return True , None