code: def read_texture(filename, attrs=None):
      
      filename = os.path.abspath(os.path.expanduser(filename))
      try:
          # intitialize the reader using the extnesion to find it
          reader = get_reader(filename)
          image = standard_reader_routine(reader, filename, attrs=attrs)
          return vtki.image_to_texture(image)
      except KeyError:
          # Otherwise, use the imageio reader
          pass
      return vtki.numpy_to_texture(imageio.imread(filename))
docs: Loads a ``vtkTexture`` from an image file.