docstr: Ensure that the given regex pattern was never called.
docstr_tok: ["Ensure","that","the","given","regex","pattern","was","never","called","."]
code: def assert_not_has_call(self, ip: str, pattern: str):
      """Ensure that the given regex pattern was never called."""
      with self.lock:
          out = ""
          for cmd in self.command_history():
              if ip in cmd:
                  out += cmd
                  out += "\n"
          if re.search(pattern, out):
              raise Exception(
                  "Found [{}] in [{}] for {}".format(pattern, out, ip)
              )
          else:
              return True
  
imports: import re
  import threading
  from subprocess import CalledProcessError
  from typing import Callable, Dict, List, Optional
  from ray.autoscaler.node_provider import NodeProvider
label_desc: Use image node_id 5 for calling the MockProcessRunner obj's underlying member method code with example usage: obj.assert_not_has_call(ip, pattern) and returns: True