input: Write a function to scrape photos and captions from a given website. The function should take a website URL as input, retrieve the HTML, parse the HTML to find all images (with their captions if available), and print the image source URLs along with their captions (or "No caption" if no caption is available).
  assert scrape_photos_and_captions('https://example.com/webpage')==None
  assert scrape_photos_and_captions('https://nonexistentwebsite.com')==None
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_photos_and_captions(url):
      try:
          response = requests.get(url)
          response.raise_for_status()
          soup = BeautifulSoup(response.text, 'html.parser')
          images = soup.find_all('img')
          for img in images:
              src = img.get('src')
              caption = img.find_next('figcaption') if img.find_next('figcaption') else "No caption"
              print(f"Image URL: {src}, Caption: {caption.text if caption != 'No caption' else caption}")
      except requests.exceptions.RequestException:
          pass