docstr: Save numpy pic as a jpg
  
  Args:
  x: Numpy array between (-1,1)
  return: reconstruct_img_np_squeezed is numpy array between (0,1)
docstr_tok: ["Save","numpy","pic","as","a","jpg","Args",":","x",":","Numpy","array","between","(","-1,1",")","return",":","reconstruct_img_np_squeezed","is","numpy","array","between","(","0,1",")"]
code: def _save_np_as_jpg(
      self, save_name, x, logo_mask=None, resized_logo_mask=None
  ):
      """
      Save numpy pic as a jpg
  
      Args:
      x: Numpy array between (-1,1)
      return: reconstruct_img_np_squeezed is numpy array between (0,1)
      """
      # reconstruct image from perturbation
      ad_x = x
      ad_x_01 = (ad_x / 2.0) + 0.5
  
      # bx.imshow only take value between 0 and 1
      squeezed = np.squeeze(ad_x_01)
  
      ad_x_squeezed = np.squeeze(ad_x)
      reconstruct_img_resized_np = (ad_x_squeezed + 1.0) / 2.0 * 255.0
      print(
          (
              "min and max in img(numpy form):",
              reconstruct_img_resized_np.min(),
              reconstruct_img_resized_np.max(),
          )
      )
  
      reconstruct_img_np = cv2.resize(
          reconstruct_img_resized_np, (self.w_img, self.h_img)
      )  # reconstruct_img_BGR
      reconstruct_img_np_squeezed = np.squeeze(reconstruct_img_np)
  
      # choose to generate invisible clothe
      user_input = "Yes"
      save_name = "HD_sticker.jpg"
      while user_input != "No" and self.Do_you_want_ad_sticker is True:
          user_input = eval(
              input("Do you want an invisible clothe? Yes/No:")
          )
          if user_input == "Yes":
              print("Ok!")
              if (
                  logo_mask is not None
                  and resized_logo_mask is not None
              ):
                  self._generate_sticker(
                      save_name,
                      reconstruct_img_np_squeezed,
                      logo_mask,
                      resized_logo_mask,
                  )
              else:
                  self._generate_sticker(
                      save_name, reconstruct_img_np_squeezed
                  )
              break
          elif user_input == "No":
              print("Bye-Bye!")
              break
          else:
              print("Wrong command!")
              user_input = eval(
                  input("Do you want an invisible clothe? Yes/No:")
              )
  
      return reconstruct_img_np_squeezed
  
imports: from __future__ import division
  from __future__ import print_function
  from builtins import input
  from builtins import range
  from builtins import object
  from past.utils import old_div
  from abc import ABCMeta
  from abc import abstractmethod
  import numpy
  import cv2
  import os
  import xmltodict
  import pdb
  from future.utils import with_metaclass
label_desc: Use image node_id 12 for calling the ODD_logic obj's underlying member method code with example usage: obj._save_np_as_jpg(save_name, x, logo_mask, resized_logo_mask) and returns: reconstruct_img_np_squeezed