code: def find_input(self, stream):
          
  
          for i, input_x in enumerate(self.inputs):
              if input_x[0].matches(stream):
                  return i
docs: Find the input that responds to this stream.
  
          Args:
              stream (DataStream): The stream to find
  
          Returns:
              (index, None): The index if found or None