code: def __init__(self, url):
      self.url = url
      if "png" in url:
          self.format = "PNG"
      elif "jpg" in url:
          self.format = "JPG"
      if "grey" in url:
          self.channels = 1
      else:
          self.channels = 3
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import array
  import unittest
  from PIL import Image
  import os
  from ..data_structures import image
  from ..None import SArray
  from ..toolkits.image_analysis import image_analysis
  from ..toolkits._main import ToolkitError
  from .._deps import numpy, HAS_NUMPY
label_desc: Use image node_id 1 to create a new image_info object  with example: obj = image_info(url)