input: Write a function to retrieve the latest stock prices for a list of stock symbols from a specific website using web scraping in Python. The function should return a dictionary with the stock symbols as keys and their corresponding prices as values. If the stock symbol is not found or if there is any issue with the request, the function should return None for that stock symbol.
  
  def get_stock_prices(stock_symbols):
      import requests
      from bs4 import BeautifulSoup
      
      prices = {}
      
      for stock in stock_symbols:
          url = f"https://finance.yahoo.com/quote/{stock}"
          response = requests.get(url)
          
          if response.status_code == 200:
              soup = BeautifulSoup(response.text, 'html.parser')
              price_element = soup.find('div', {'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span')
              
              if price_element:
                  prices[stock] = price_element.text
              else:
                  prices[stock] = None
          else:
              prices[stock] = None
      
      return prices
  
  assert get_stock_prices(["AAPL", "MSFT"]) == {"AAPL": "150.00", "MSFT": "250.00"}
  assert get_stock_prices(["FB", "GOOG"]) == {"FB": "300.00", "GOOG": "2000.00"}
  assert get_stock_prices(["INVALID"]) == {"INVALID": None}
  assert get_stock_prices([]) == {}
output: def get_stock_prices(stock_symbols):
      import requests
      from bs4 import BeautifulSoup
      
      prices = {}
      
      for stock in stock_symbols:
          url = f"https://finance.yahoo.com/quote/{stock}"
          response = requests.get(url)
          
          if response.status_code == 200:
              soup = BeautifulSoup(response.text, 'html.parser')
              price_element = soup.find('div', {'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span')
              
              if price_element:
                  prices[stock] = price_element.text
              else:
                  prices[stock] = None
          else:
              prices[stock] = None
      
      return prices