code: def run_and_read_all(run_lambda, command):
      """Runs command using run_lambda; reads and returns entire output if rc is 0"""
      rc, out, _ = run_lambda(command)
      if rc != 0:
          return None
      return out
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import locale
  import re
  import subprocess
  import sys
  import os
  from collections import namedtuple
  import logging
label_desc: Use image node_id 2 for calling a global function with example usage: run_and_read_all(run_lambda, command) and returns: out, None