def METHOD_NAME(self, port_num):
    # Check for invalid port_num
    if port_num < self._port_start or port_num > self._port_end:
        return False
    path = "/sys/bus/i2c/devices/4-0060/module_reset_{0}"
    port_ps = path.format(port_num)
    try:
        reg_file = open(port_ps, 'w', buffering=0)
    except IOError as e:
        print("Error: unable to open file: %s" % str(e))
        return False
    # toggle reset
    reg_file.seek(0)
    reg_file.write('1')
    time.sleep(1)
    reg_file.seek(0)
    reg_file.write('0')
    reg_file.close()
    return True