def METHOD_NAME(text):
  try:
    with tempfile.NamedTemporaryFile(mode='w+', delete=False, prefix="mpk_temp", suffix=".json") as t:
      t.write(text)
      t.close()
      return t.name
  except Exception as e:
    print(f"write_tmpfile Error: {e}", file=sys.stderr)
    return None