docs: def get_data_port_by_id(self, data_port_id):
          """Search for the given data port id in the data ports of the state
  
          The method tries to find a data port in the input and output data ports.
          :param int data_port_id: the unique id of the data port
          :return: the data port with the searched id or None if it is not found
          """
          if data_port_id in self.input_data_ports:
              return self.input_data_ports[data_port_id]
          elif data_port_id in self.output_data_ports:
              return self.output_data_ports[data_port_id]
          return None